public abstract class AbstractSecuredLocalService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Auth |
auth |
protected ClientModel |
client |
protected ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected RealmModel |
realm |
protected org.jboss.resteasy.spi.HttpRequest |
request |
protected KeycloakSession |
session |
protected String |
stateChecker |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
AbstractSecuredLocalService(RealmModel realm,
ClientModel client) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response |
authenticateBrowser() |
protected void |
csrfCheck(javax.ws.rs.core.MultivaluedMap<String,String> formData)
Check to see if form post has sessionId hidden field and match it against the session id.
|
protected void |
csrfCheck(String stateChecker)
Check to see if form post has sessionId hidden field and match it against the session id.
|
protected abstract URI |
getBaseRedirectUri() |
protected abstract Set<String> |
getValidPaths() |
protected javax.ws.rs.core.Response |
login(String path) |
javax.ws.rs.core.Response |
loginRedirect(String code,
String state,
String error,
String path,
String referrer,
javax.ws.rs.core.HttpHeaders headers) |
protected void |
updateCsrfChecks() |
protected final ClientModel client
protected RealmModel realm
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected ClientConnection clientConnection
protected String stateChecker
@Context protected KeycloakSession session
@Context protected org.jboss.resteasy.spi.HttpRequest request
protected Auth auth
public AbstractSecuredLocalService(RealmModel realm, ClientModel client)
@Path(value="login-redirect")
@GET
public javax.ws.rs.core.Response loginRedirect(@QueryParam(value="code")
String code,
@QueryParam(value="state")
String state,
@QueryParam(value="error")
String error,
@QueryParam(value="path")
String path,
@QueryParam(value="referrer")
String referrer,
@Context
javax.ws.rs.core.HttpHeaders headers)
protected void updateCsrfChecks()
protected void csrfCheck(javax.ws.rs.core.MultivaluedMap<String,String> formData)
formData - protected void csrfCheck(String stateChecker)
protected abstract URI getBaseRedirectUri()
protected javax.ws.rs.core.Response login(String path)
protected javax.ws.rs.core.Response authenticateBrowser()
Copyright © 2016 JBoss by Red Hat. All rights reserved.