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
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDAO
protected final AccessTokenDataBinder
protected final AuthDataAccessor
protected final EncryptorManager
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
ConstructorsConstructorDescriptionOIDCC4UILogic
(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, AccessTokenDAO accessTokenDAO, OIDCUserManager userManager, EncryptorManager encryptorManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
backChannelLogout
(String logoutToken, String redirectURI) createLoginRequest
(String redirectURI, String opName, boolean reauth) 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:
-
oidcClientCacheLogin
-
oidcClientCacheLogout
-
authDataAccessor
-
accessTokenDataBinder
-
opDAO
-
accessTokenDAO
-
userManager
-
encryptorManager
-
-
Constructor Details
-
OIDCC4UILogic
public OIDCC4UILogic(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, AccessTokenDAO accessTokenDAO, OIDCUserManager userManager, EncryptorManager encryptorManager)
-
-
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, boolean reauth) -
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) -
backChannelLogout
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void backChannelLogout(String logoutToken, String redirectURI) -
resolveReference
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<EntityTO>
- Throws:
UnresolvedReferenceException
-