public class AccountService extends AbstractSecuredLocalService
Modifier and Type | Class and Description |
---|---|
static class |
AccountService.AccountSocialAction |
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_MGMT_FORWARDED_ERROR_NOTE |
auth, client, clientConnection, headers, realm, request, session, stateChecker, uriInfo
Constructor and Description |
---|
AccountService(RealmModel realm,
ClientModel client,
EventBuilder event) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
accountPage()
Get account information.
|
javax.ws.rs.core.Response |
accountPreflight()
CORS preflight
|
static javax.ws.rs.core.UriBuilder |
accountServiceApplicationPage(javax.ws.rs.core.UriInfo uriInfo) |
static javax.ws.rs.core.UriBuilder |
accountServiceBaseUrl(javax.ws.rs.core.UriBuilder base) |
static javax.ws.rs.core.UriBuilder |
accountServiceBaseUrl(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
applicationsPage() |
javax.ws.rs.core.Response |
federatedIdentityPage() |
protected URI |
getBaseRedirectUri() |
protected Set<String> |
getValidPaths() |
void |
init() |
static boolean |
isPasswordSet(KeycloakSession session,
RealmModel realm,
UserModel user) |
static javax.ws.rs.core.UriBuilder |
loginRedirectUrl(javax.ws.rs.core.UriBuilder base) |
javax.ws.rs.core.Response |
logPage() |
javax.ws.rs.core.Response |
passwordPage() |
static javax.ws.rs.core.UriBuilder |
passwordUrl(javax.ws.rs.core.UriBuilder base) |
javax.ws.rs.core.Response |
processAccountUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
Update account information.
|
javax.ws.rs.core.Response |
processFederatedIdentityUpdate(String action,
String providerId,
String stateChecker) |
javax.ws.rs.core.Response |
processPasswordUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
Update account password
Form params:
password - old password
password-new
pasword-confirm
|
javax.ws.rs.core.Response |
processRevokeGrant(javax.ws.rs.core.MultivaluedMap<String,String> formData) |
javax.ws.rs.core.Response |
processSessionsLogout(String stateChecker) |
javax.ws.rs.core.Response |
processTotpRemove(String stateChecker) |
javax.ws.rs.core.Response |
processTotpUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
Update the TOTP for this account.
|
void |
require(String role) |
void |
requireOneOf(String... roles) |
javax.ws.rs.core.Response |
sessionsPage() |
protected void |
setReferrerOnPage() |
javax.ws.rs.core.Response |
totpPage() |
static javax.ws.rs.core.UriBuilder |
totpUrl(javax.ws.rs.core.UriBuilder base) |
authenticateBrowser, csrfCheck, csrfCheck, login, loginRedirect, updateCsrfChecks
public static final String ACCOUNT_MGMT_FORWARDED_ERROR_NOTE
public AccountService(RealmModel realm, ClientModel client, EventBuilder event)
public void init()
public static javax.ws.rs.core.UriBuilder accountServiceBaseUrl(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder accountServiceApplicationPage(javax.ws.rs.core.UriInfo uriInfo)
public static javax.ws.rs.core.UriBuilder accountServiceBaseUrl(javax.ws.rs.core.UriBuilder base)
protected Set<String> getValidPaths()
getValidPaths
in class AbstractSecuredLocalService
protected void setReferrerOnPage()
@Path(value="/") @OPTIONS public javax.ws.rs.core.Response accountPreflight()
@Path(value="/") @GET public javax.ws.rs.core.Response accountPage()
public static javax.ws.rs.core.UriBuilder totpUrl(javax.ws.rs.core.UriBuilder base)
@Path(value="totp") @GET public javax.ws.rs.core.Response totpPage()
public static javax.ws.rs.core.UriBuilder passwordUrl(javax.ws.rs.core.UriBuilder base)
@Path(value="password") @GET public javax.ws.rs.core.Response passwordPage()
@Path(value="identity") @GET public javax.ws.rs.core.Response federatedIdentityPage()
@Path(value="log") @GET public javax.ws.rs.core.Response logPage()
@Path(value="sessions") @GET public javax.ws.rs.core.Response sessionsPage()
@Path(value="applications") @GET public javax.ws.rs.core.Response applicationsPage()
@Path(value="/") @POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response processAccountUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData
- @Path(value="totp-remove") @GET public javax.ws.rs.core.Response processTotpRemove(@QueryParam(value="stateChecker") String stateChecker)
@Path(value="sessions-logout") @GET public javax.ws.rs.core.Response processSessionsLogout(@QueryParam(value="stateChecker") String stateChecker)
@Path(value="revoke-grant") @POST public javax.ws.rs.core.Response processRevokeGrant(javax.ws.rs.core.MultivaluedMap<String,String> formData)
@Path(value="totp") @POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response processTotpUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData
- @Path(value="password") @POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response processPasswordUpdate(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData
- @Path(value="federated-identity-update") @GET public javax.ws.rs.core.Response processFederatedIdentityUpdate(@QueryParam(value="action") String action, @QueryParam(value="provider_id") String providerId, @QueryParam(value="stateChecker") String stateChecker)
public static javax.ws.rs.core.UriBuilder loginRedirectUrl(javax.ws.rs.core.UriBuilder base)
protected URI getBaseRedirectUri()
getBaseRedirectUri
in class AbstractSecuredLocalService
public static boolean isPasswordSet(KeycloakSession session, RealmModel realm, UserModel user)
public void require(String role)
public void requireOneOf(String... roles)
Copyright © 2016 JBoss by Red Hat. All rights reserved.