public class LogoutEndpoint extends Object
Constructor and Description |
---|
LogoutEndpoint(TokenManager tokenManager,
RealmModel realm,
EventBuilder event) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
backchannelLogout()
Backchannel logout endpoint implementation for Keycloak, which tries to logout the user from all sessions via
POST with a valid LogoutToken.
|
javax.ws.rs.core.Response |
logout(String redirectUri,
String encodedIdToken,
String postLogoutRedirectUri,
String state,
String initiatingIdp)
Logout user session.
|
javax.ws.rs.core.Response |
logoutToken()
Logout a session via a non-browser invocation.
|
public LogoutEndpoint(TokenManager tokenManager, RealmModel realm, EventBuilder event)
@GET public javax.ws.rs.core.Response logout(@QueryParam(value="redirect_uri") String redirectUri, @QueryParam(value="id_token_hint") String encodedIdToken, @QueryParam(value="post_logout_redirect_uri") String postLogoutRedirectUri, @QueryParam(value="state") String state, @QueryParam(value="initiating_idp") String initiatingIdp)
redirectUri
- initiatingIdp
- The alias of the idp initiating the logout.@POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response logoutToken()
@Path(value="/backchannel-logout") @POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response backchannelLogout()
Copyright © 2021 JBoss by Red Hat. All rights reserved.