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 Authauthprotected ClientModelclientprotected ClientConnectionclientConnectionprotected javax.ws.rs.core.HttpHeadersheadersprotected RealmModelrealmprotected HttpRequestrequestprotected KeycloakSessionsessionprotected StringstateChecker
-
Constructor Summary
Constructors Constructor Description AbstractSecuredLocalService(KeycloakSession session, ClientModel client)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract URIgetBaseRedirectUri()protected abstract Set<String>getValidPaths()protected javax.ws.rs.core.Responselogin(String path)javax.ws.rs.core.ResponseloginRedirect(String code, String state, String error, String path, String referrer)
-
-
-
Field Detail
-
client
protected final ClientModel client
-
realm
protected final RealmModel realm
-
headers
protected final javax.ws.rs.core.HttpHeaders headers
-
clientConnection
protected final ClientConnection clientConnection
-
stateChecker
protected String stateChecker
-
session
protected final KeycloakSession session
-
request
protected final HttpRequest request
-
auth
protected Auth auth
-
-
Constructor Detail
-
AbstractSecuredLocalService
public AbstractSecuredLocalService(KeycloakSession session, 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)
-
getBaseRedirectUri
protected abstract URI getBaseRedirectUri()
-
login
protected javax.ws.rs.core.Response login(String path)
-
-