Package org.apache.syncope.core.logic
Class OIDCC4UILogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<EntityTO>
-
- org.apache.syncope.core.logic.OIDCC4UILogic
-
public class OIDCC4UILogic extends AbstractTransactionalLogic<EntityTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTokenDAOaccessTokenDAOprotected AccessTokenDataBinderaccessTokenDataBinderprotected AuthDataAccessorauthDataAccessorprotected static EncryptorENCRYPTORprotected static StringJWT_CLAIM_ID_TOKENprotected static StringJWT_CLAIM_OP_NAMEprotected OIDCClientCacheoidcClientCacheLoginprotected OIDCClientCacheoidcClientCacheLogoutprotected OIDCC4UIProviderDAOopDAOprotected OIDCUserManageruserManager-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description OIDCC4UILogic(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, AccessTokenDAO accessTokenDAO, OIDCUserManager userManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbackChannelLogout(String logoutToken, String redirectURI)OIDCRequestcreateLoginRequest(String redirectURI, String opName, boolean reauth)OIDCRequestcreateLogoutRequest(String accessToken, String redirectURI)protected org.pac4j.oidc.client.OidcClientgetOidcClient(OIDCClientCache oidcClientCache, OIDCC4UIProvider op, String callbackUrl)OIDCLoginResponselogin(String redirectURI, String authorizationCode, String opName)protected EntityTOresolveReference(Method method, Object... args)-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
JWT_CLAIM_OP_NAME
protected static final String JWT_CLAIM_OP_NAME
- See Also:
- Constant Field Values
-
JWT_CLAIM_ID_TOKEN
protected static final String JWT_CLAIM_ID_TOKEN
- See Also:
- Constant Field Values
-
ENCRYPTOR
protected static final Encryptor ENCRYPTOR
-
oidcClientCacheLogin
protected final OIDCClientCache oidcClientCacheLogin
-
oidcClientCacheLogout
protected final OIDCClientCache oidcClientCacheLogout
-
authDataAccessor
protected final AuthDataAccessor authDataAccessor
-
accessTokenDataBinder
protected final AccessTokenDataBinder accessTokenDataBinder
-
opDAO
protected final OIDCC4UIProviderDAO opDAO
-
accessTokenDAO
protected final AccessTokenDAO accessTokenDAO
-
userManager
protected final OIDCUserManager userManager
-
-
Constructor Detail
-
OIDCC4UILogic
public OIDCC4UILogic(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, AccessTokenDAO accessTokenDAO, OIDCUserManager userManager)
-
-
Method Detail
-
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:
resolveReferencein classAbstractLogic<EntityTO>- Throws:
UnresolvedReferenceException
-
-