Package org.apache.syncope.core.logic
Class OIDCC4UILogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<EntityTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<EntityTO>
org.apache.syncope.core.logic.OIDCC4UILogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenDataBinder
protected final AuthDataAccessor
protected static final Encryptor
protected static final String
protected static final String
protected final OIDCClientCache
protected final OIDCClientCache
protected final OIDCC4UIProviderDAO
protected final OIDCUserManager
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionOIDCC4UILogic
(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, OIDCUserManager userManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateLoginRequest
(String redirectURI, String opName) createLogoutRequest
(String accessToken, String redirectURI) protected org.pac4j.oidc.client.OidcClient
getOidcClient
(OIDCClientCache oidcClientCache, OIDCC4UIProvider op, String callbackUrl) protected EntityTO
resolveReference
(Method method, Object... args) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
JWT_CLAIM_OP_NAME
- See Also:
-
JWT_CLAIM_ID_TOKEN
- See Also:
-
ENCRYPTOR
-
oidcClientCacheLogin
-
oidcClientCacheLogout
-
authDataAccessor
-
accessTokenDataBinder
-
opDAO
-
userManager
-
-
Constructor Details
-
OIDCC4UILogic
public OIDCC4UILogic(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, OIDCUserManager userManager)
-
-
Method Details
-
getOidcClient
protected org.pac4j.oidc.client.OidcClient getOidcClient(OIDCClientCache oidcClientCache, OIDCC4UIProvider op, String callbackUrl) -
createLoginRequest
@PreAuthorize("hasRole(\'ANONYMOUS\')") public OIDCRequest createLoginRequest(String redirectURI, String opName) -
login
@PreAuthorize("hasRole(\'ANONYMOUS\')") public OIDCLoginResponse login(String redirectURI, String authorizationCode, String opName) -
createLogoutRequest
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") public OIDCRequest createLogoutRequest(String accessToken, String redirectURI) -
resolveReference
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<EntityTO>
- Throws:
UnresolvedReferenceException
-