Class OIDCC4UIServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.OIDCC4UIServiceImpl
-
- All Implemented Interfaces:
JAXRSService,OIDCC4UIService
@Service public class OIDCC4UIServiceImpl extends AbstractService implements OIDCC4UIService
-
-
Field Summary
Fields Modifier and Type Field Description protected OIDCC4UILogiclogic-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description OIDCC4UIServiceImpl(OIDCC4UILogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbackChannelLogout(String logoutToken, String redirectURI)Removes the JWT matching the provided OIDC logout token.OIDCRequestcreateLoginRequest(String redirectURI, String op, boolean reauth)Generates OpenID Connect authentication request for the Provider matching the provided op.OIDCRequestcreateLogoutRequest(String redirectURI)Returns the endSession endpoint for the OP matching the requesting access token.OIDCLoginResponselogin(String redirectURI, String authorizationCode, String op)Uses the provided authorization code to go through the OpenID Connect tokens process and finally creates JWT for the matching user, if found.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final OIDCC4UILogic logic
-
-
Constructor Detail
-
OIDCC4UIServiceImpl
public OIDCC4UIServiceImpl(OIDCC4UILogic logic)
-
-
Method Detail
-
createLoginRequest
public OIDCRequest createLoginRequest(String redirectURI, String op, boolean reauth)
Description copied from interface:OIDCC4UIServiceGenerates OpenID Connect authentication request for the Provider matching the provided op.- Specified by:
createLoginRequestin interfaceOIDCC4UIService- Parameters:
redirectURI- redirect URIop- OpenID Connect Providerreauth- whether max_age=0 and prompt=login shall be set on the request- Returns:
- OpenID Connect authentication request
-
login
public OIDCLoginResponse login(String redirectURI, String authorizationCode, String op)
Description copied from interface:OIDCC4UIServiceUses the provided authorization code to go through the OpenID Connect tokens process and finally creates JWT for the matching user, if found.- Specified by:
loginin interfaceOIDCC4UIService- Parameters:
redirectURI- redirect URIauthorizationCode- authorization code generated by the remote OpenID Connect Providerop- OpenID Connect Provider- Returns:
- JWT for the matching user plus attributes returned in the response
-
createLogoutRequest
public OIDCRequest createLogoutRequest(String redirectURI)
Description copied from interface:OIDCC4UIServiceReturns the endSession endpoint for the OP matching the requesting access token.- Specified by:
createLogoutRequestin interfaceOIDCC4UIService- Parameters:
redirectURI- redirect URI- Returns:
- endSession endpoint for the OP matching the requesting access token
-
backChannelLogout
public void backChannelLogout(String logoutToken, String redirectURI)
Description copied from interface:OIDCC4UIServiceRemoves the JWT matching the provided OIDC logout token.- Specified by:
backChannelLogoutin interfaceOIDCC4UIService- Parameters:
logoutToken- logout tokenredirectURI- redirect URI
-
-