Skip to content

Commit

Permalink
Keycloak Admin REST API v26.0.0 (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork authored Oct 7, 2024
1 parent e86f369 commit 712751f
Show file tree
Hide file tree
Showing 6 changed files with 681 additions and 363 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "keycloak"
version = "25.0.400"
version = "26.0.0"
authors = ["Alexander Korolev <[email protected]>"]
edition = "2021"
categories = ["api-bindings", "asynchronous"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/).

## Features

Implements [Keycloak Admin REST API version 25.0.4](https://www.keycloak.org/docs-api/25.0.4/rest-api/index.html).
Implements [Keycloak Admin REST API version 26.0.0](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html).

### Feature flags

Expand All @@ -24,7 +24,7 @@ Add dependency to Cargo.toml:

```toml
[dependencies]
keycloak = "25.0"
keycloak = "26.0"
```

```rust
Expand Down
181 changes: 180 additions & 1 deletion api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7124,6 +7124,13 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "briefRepresentation",
"in" : "query",
"description" : "Boolean which defines whether brief representations are returned (default: false)",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "first",
"in" : "query",
Expand Down Expand Up @@ -9208,6 +9215,13 @@
"format" : "int32",
"type" : "integer"
}
}, {
"name" : "realmOnly",
"in" : "query",
"description" : "Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false)",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "search",
"in" : "query",
Expand Down Expand Up @@ -10856,6 +10870,13 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "briefRepresentation",
"in" : "query",
"description" : "Boolean which defines whether brief representations are returned (default: false)",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "first",
"in" : "query",
Expand Down Expand Up @@ -13922,6 +13943,9 @@
"provider" : {
"type" : "string"
},
"parent" : {
"type" : "string"
},
"config" : {
"type" : "object",
"additionalProperties" : {
Expand Down Expand Up @@ -14536,12 +14560,18 @@
"linkOnly" : {
"type" : "boolean"
},
"hideOnLogin" : {
"type" : "boolean"
},
"firstBrokerLoginFlowAlias" : {
"type" : "string"
},
"postBrokerLoginFlowAlias" : {
"type" : "string"
},
"organizationId" : {
"type" : "string"
},
"config" : {
"type" : "object",
"additionalProperties" : {
Expand Down Expand Up @@ -14716,6 +14746,149 @@
}
}
},
"MemberRepresentation" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string"
},
"username" : {
"type" : "string"
},
"firstName" : {
"type" : "string"
},
"lastName" : {
"type" : "string"
},
"email" : {
"type" : "string"
},
"emailVerified" : {
"type" : "boolean"
},
"attributes" : {
"type" : "object",
"additionalProperties" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
},
"userProfileMetadata" : {
"$ref" : "#/components/schemas/UserProfileMetadata"
},
"self" : {
"type" : "string"
},
"origin" : {
"type" : "string"
},
"createdTimestamp" : {
"format" : "int64",
"type" : "integer"
},
"enabled" : {
"type" : "boolean"
},
"totp" : {
"type" : "boolean"
},
"federationLink" : {
"type" : "string"
},
"serviceAccountClientId" : {
"type" : "string"
},
"credentials" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/CredentialRepresentation"
}
},
"disableableCredentialTypes" : {
"uniqueItems" : true,
"type" : "array",
"items" : {
"type" : "string"
}
},
"requiredActions" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"federatedIdentities" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/FederatedIdentityRepresentation"
}
},
"realmRoles" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"clientRoles" : {
"type" : "object",
"additionalProperties" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
},
"clientConsents" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/UserConsentRepresentation"
}
},
"notBefore" : {
"format" : "int32",
"type" : "integer"
},
"applicationRoles" : {
"type" : "object",
"additionalProperties" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"deprecated" : true
},
"socialLinks" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/SocialLinkRepresentation"
},
"deprecated" : true
},
"groups" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"access" : {
"type" : "object",
"additionalProperties" : {
"type" : "boolean"
}
},
"membershipType" : {
"$ref" : "#/components/schemas/MembershipType"
}
}
},
"MembershipType" : {
"enum" : [ "UNMANAGED", "MANAGED" ],
"type" : "string"
},
"MethodConfig" : {
"type" : "object",
"properties" : {
Expand Down Expand Up @@ -14955,12 +15128,18 @@
"name" : {
"type" : "string"
},
"alias" : {
"type" : "string"
},
"enabled" : {
"type" : "boolean"
},
"description" : {
"type" : "string"
},
"redirectUrl" : {
"type" : "string"
},
"attributes" : {
"type" : "object",
"additionalProperties" : {
Expand All @@ -14980,7 +15159,7 @@
"members" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/UserRepresentation"
"$ref" : "#/components/schemas/MemberRepresentation"
}
},
"identityProviders" : {
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/).
## Features
Implements [Keycloak Admin REST API version 25.0.4](https://www.keycloak.org/docs-api/25.0.4/rest-api/index.html).
Implements [Keycloak Admin REST API version 26.0.0](https://www.keycloak.org/docs-api/26.0.0/rest-api/index.html).
### Feature flags
Expand All @@ -25,7 +25,7 @@ Add dependency to Cargo.toml:
```toml
[dependencies]
keycloak = "25.0"
keycloak = "26.0"
```
```rust, no_run
Expand Down Expand Up @@ -118,4 +118,4 @@ pub use error::KeycloakError;
pub use rest::{
KeycloakAdmin, KeycloakAdminToken, KeycloakServiceAccountAdminTokenRetriever,
KeycloakTokenSupplier,
};
};
Loading

0 comments on commit 712751f

Please sign in to comment.