Package org.keycloak.services.resources
Class AbstractSecuredLocalService
- java.lang.Object
-
- org.keycloak.services.resources.AbstractSecuredLocalService
-
- Direct Known Subclasses:
AccountFormService
public abstract class AbstractSecuredLocalService extends Object
Helper class for securing local services. Provides login basics as well as CSRF check basics- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Constructor Description AbstractSecuredLocalService(RealmModel realm, ClientModel client)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
client
protected final ClientModel client
-
realm
protected RealmModel realm
-
headers
@Context protected javax.ws.rs.core.HttpHeaders headers
-
clientConnection
@Context protected ClientConnection clientConnection
-
stateChecker
protected String stateChecker
-
session
@Context protected KeycloakSession session
-
request
@Context protected org.jboss.resteasy.spi.HttpRequest request
-
auth
protected Auth auth
-
-
Constructor Detail
-
AbstractSecuredLocalService
public AbstractSecuredLocalService(RealmModel realm, ClientModel client)
-
-
Method Detail
-
loginRedirect
@Path("login-redirect") @GET public javax.ws.rs.core.Response loginRedirect(@QueryParam("code") String code, @QueryParam("state") String state, @QueryParam("error") String error, @QueryParam("path") String path, @QueryParam("referrer") String referrer, @Context javax.ws.rs.core.HttpHeaders headers)
-
getBaseRedirectUri
protected abstract URI getBaseRedirectUri()
-
login
protected javax.ws.rs.core.Response login(String path)
-
-