keycloak
|
公開メンバ関数 | |
UserResource (RealmModel realm, UserModel user, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) | |
Response | updateUser (final UserRepresentation rep) |
UserRepresentation | getUser () |
Map< String, Object > | impersonate () |
List< UserSessionRepresentation > | getSessions () |
List< UserSessionRepresentation > | getOfflineSessions (final @PathParam("clientId") String clientId) |
List< FederatedIdentityRepresentation > | getFederatedIdentity () |
Response | addFederatedIdentity (final @PathParam("provider") String provider, FederatedIdentityRepresentation rep) |
void | removeFederatedIdentity (final @PathParam("provider") String provider) |
List< Map< String, Object > > | getConsents () |
void | revokeConsent (final @PathParam("client") String clientId) |
void | logout () |
Response | deleteUser () |
RoleMapperResource | getRoleMappings () |
void | disableCredentialType (List< String > credentialTypes) |
void | resetPassword (CredentialRepresentation pass) |
void | removeTotp () |
Response | resetPasswordEmail (@QueryParam(OIDCLoginProtocol.REDIRECT_URI_PARAM) String redirectUri, @QueryParam(OIDCLoginProtocol.CLIENT_ID_PARAM) String clientId) |
Response | executeActionsEmail (@QueryParam(OIDCLoginProtocol.REDIRECT_URI_PARAM) String redirectUri, @QueryParam(OIDCLoginProtocol.CLIENT_ID_PARAM) String clientId, @QueryParam("lifespan") Integer lifespan, List< String > actions) |
Response | sendVerifyEmail (@QueryParam(OIDCLoginProtocol.REDIRECT_URI_PARAM) String redirectUri, @QueryParam(OIDCLoginProtocol.CLIENT_ID_PARAM) String clientId) |
List< GroupRepresentation > | groupMembership () |
void | removeMembership (@PathParam("groupId") String groupId) |
void | joinGroup (@PathParam("groupId") String groupId) |
静的公開メンバ関数 | |
static void | updateUserFromRep (UserModel user, UserRepresentation rep, Set< String > attrsToRemove, RealmModel realm, KeycloakSession session, boolean removeMissingRequiredActions) |
限定公開変数類 | |
RealmModel | realm |
ClientConnection | clientConnection |
KeycloakSession | session |
HttpHeaders | headers |
非公開メンバ関数 | |
List< FederatedIdentityRepresentation > | getFederatedIdentities (UserModel user) |
非公開変数類 | |
AdminPermissionEvaluator | auth |
AdminEventBuilder | adminEvent |
UserModel | user |
静的非公開変数類 | |
static final Logger | logger = Logger.getLogger(UserResource.class) |
Base resource for managing users
Users
|
inline |
|
inline |
Add a social login provider to the user
provider | Social login provider id |
rep |
|
inline |
Delete the user
|
inline |
Disable all credentials for a user of a specific type
credentialTypes |
|
inline |
Send a update account email to the user
An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. 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 clientId.
redirectUri | Redirect uri |
clientId | Client id |
lifespan | Number of seconds after which the generated token expires |
actions | required actions the user needs to complete |
|
inline |
Get consents granted by the user
|
inlineprivate |
|
inline |
Get social logins associated with the user
|
inline |
Get offline sessions associated with the user and client
|
inline |
|
inline |
Get sessions associated with the user
|
inline |
Get representation of the user
|
inline |
|
inline |
Impersonate the user
|
inline |
|
inline |
Remove all user sessions associated with the user
Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.
|
inline |
Remove a social login provider from user
provider | Social login provider id |
|
inline |
|
inline |
Remove TOTP from the user
|
inline |
Set up a temporary password for the user
User will have to reset the temporary password next time they log in.
pass | A Temporary password |
|
inline |
Send an email to the user with a link they can click to reset their password. The redirectUri and clientId parameters are optional. The default for the redirect is the account client.
This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it.
redirectUri | redirect uri |
clientId | client id |
|
inline |
Revoke consent and offline tokens for particular client from user
clientId | Client id |
|
inline |
Send an email-verification email to the user
An email contains a link the user can click to verify their email address. The redirectUri and clientId parameters are optional. The default for the redirect is the account client.
redirectUri | Redirect uri |
clientId | Client id |
|
inline |
Update the user
rep |
|
inlinestatic |
|
private |
|
private |
|
protected |
|
protected |
|
staticprivate |
|
protected |
|
protected |
|
private |