This extension exposes a custom realm resource to manage action tokens in keycloak.
mvn clean verify
Copy the .jar
into the keycloak directory standalone/deployments
Copy the .jar
into the keycloak directory providers
POST /auth/realms/{realm}/actions-token/generate
POST /realms/{realm}/actions-token/generate
Request an action token for a set of specific actions.
Type | Name | Required | Description | Schema |
---|---|---|---|---|
Path | realm | true | realm name (not id!) | string |
Body | user_id | true | User that will be asked to perform a set of required actions | string |
Body | actions | true | Required actions the user needs to complete. List of required actions here | < string > array |
Body | lifespan | false | Number of seconds after which the generated token expires | integer(int32) |
Body | client_id | false | OAuth client the token was issued for. Defaults to the account client. |
string |
Body | redirect_uri | false | If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular client_id |
string |
Body | redirect_uri_validate | false | Bypass redirect_uri validation checks for the particular client_id |
boolean |
Type | Name | Required | Description | Schema |
---|---|---|---|---|
Body | action_token | true | JWT action token signed with the realm's default signature algorithm | string |
application/json
application/json
- https://github.com/aerogear/keycloak-metrics-spi
- https://github.com/thomasdarimont/keycloak-avatar-minio-extension
- https://github.com/keycloak/keycloak-quickstarts/tree/latest/action-token-authenticator
- https://www.janua.fr/action-token-in-keycloak/
- https://stackoverflow.com/questions/67006007/how-to-generate-and-use-login-action-token-for-keycloak-user-update-profile-in-e
- https://github.com/keycloak/keycloak/blob/264c5a6cdb2fb86e20536ea4302d20160ca01919/services/src/main/java/org/keycloak/services/resources/admin/UserResource.java#L826
- https://stackoverflow.com/a/67636834
- https://github.com/dteleguin/beercloak/blob/master/beercloak-module/src/main/java/beercloak/providers/BeerResourceProvider.java
- https://github.com/dteleguin/beercloak/blob/master/beercloak-module/src/main/java/beercloak/resources/AbstractAdminResource.java
- https://github.com/keycloak/keycloak/blob/1ed81fa3772220cb8018654e40645f981c934da6/services/src/main/java/org/keycloak/services/resources/admin/AdminRoot.java#L156
- https://github.com/keycloak/keycloak/blob/264c5a6cdb2fb86e20536ea4302d20160ca01919/services/src/main/java/org/keycloak/services/resources/admin/UsersResource.java#L284