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 AccessTokenDataBinder
accessTokenDataBinder
protected AuthDataAccessor
authDataAccessor
protected static Encryptor
ENCRYPTOR
protected static String
JWT_CLAIM_ID_TOKEN
protected static String
JWT_CLAIM_OP_NAME
protected OIDCClientCache
oidcClientCacheLogin
protected OIDCClientCache
oidcClientCacheLogout
protected OIDCC4UIProviderDAO
opDAO
protected OIDCUserManager
userManager
-
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, OIDCUserManager userManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OIDCRequest
createLoginRequest(String redirectURI, String opName)
OIDCRequest
createLogoutRequest(String accessToken, String redirectURI)
protected org.pac4j.oidc.client.OidcClient
getOidcClient(OIDCClientCache oidcClientCache, OIDCC4UIProvider op, String callbackUrl)
OIDCLoginResponse
login(String redirectURI, String authorizationCode, String opName)
protected EntityTO
resolveReference(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
-
userManager
protected final OIDCUserManager userManager
-
-
Constructor Detail
-
OIDCC4UILogic
public OIDCC4UILogic(OIDCClientCache oidcClientCacheLogin, OIDCClientCache oidcClientCacheLogout, AuthDataAccessor authDataAccessor, AccessTokenDataBinder accessTokenDataBinder, OIDCC4UIProviderDAO opDAO, 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)
-
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
-
-