ProductOpener::Keycloak - Perl module for Keycloak user management
This Perl module provides access to Keycloak specific functionality that goes beyond that of a standard OIDC authentication service.
This includes user management APIs and the user security settings forms.
Retrieves or refreshes the access token for managing users with Keycloak.
If the token is not defined, it retrieves a new token using client credentials. If the token is defined but has expired, it refreshes the token. The token is stored in the object and its expiration time is updated.
None
Returns the access token. Throws an exception if the token cannot be obtained.
Create use on keycloak side.
This is needed as we register new users via an old, undocumented API function. We create the user properties file locally before, and we create the user in keycloak in this sub.
Try to find a user in Keycloak by their username.
A hashmap reference with user information from Keycloak.
Try to find a user in Keycloak by their mail address.
A hashmap reference with user information from Keycloak.
Gets the link to the account service on Keycloak.
Returns the URL.
Try to find a user in Keycloak by a single attribute key/value combo.
This should only be used with unique attributes like email or username.
A hashmap reference with user information from Keycloak.