Package org.apache.syncope.core.logic
Class SAML2SP4UILogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<EntityTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<EntityTO>
org.apache.syncope.core.logic.SAML2SP4UILogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenDataBinder
protected final AuthDataAccessor
protected static final Encryptor
protected final SAML2SP4UIIdPDAO
protected static final String
protected static final String
protected static final String
protected static final String
protected final Map
<String, RequestedAuthnContextProvider> protected final SAML2SP4UIProperties
protected final ResourcePatternResolver
protected final SAML2ClientCache
protected final SAML2ClientCache
protected final SAML2SP4UIUserManager
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionSAML2SP4UILogic
(SAML2SP4UIProperties props, ResourcePatternResolver resourceResolver, AccessTokenDataBinder accessTokenDataBinder, SAML2ClientCache saml2ClientCacheLogin, SAML2ClientCache saml2ClientCacheLogout, SAML2SP4UIUserManager userManager, SAML2SP4UIIdPDAO idpDAO, AuthDataAccessor authDataAccessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected static SAML2Request
buildRequest
(String idpEntityID, org.pac4j.core.exception.http.RedirectionAction action) createLoginRequest
(String spEntityID, String urlContext, String idpEntityID) createLogoutRequest
(String accessToken, String spEntityID, String urlContext) protected static String
getCallbackUrl
(String spEntityID, String urlContext) void
getMetadata
(String spEntityID, String urlContext, OutputStream os) protected Optional
<RequestedAuthnContextProvider> protected org.pac4j.saml.client.SAML2Client
getSAML2Client
(SAML2ClientCache saml2ClientCache, String idpEntityID, String spEntityID, String urlContext) protected org.pac4j.saml.client.SAML2Client
getSAML2Client
(SAML2ClientCache saml2ClientCache, SAML2SP4UIIdP idp, String spEntityID, String urlContext) protected org.pac4j.saml.config.SAML2Configuration
protected EntityTO
resolveReference
(Method method, Object... args) validateLoginResponse
(SAML2Response saml2Response) void
validateLogoutResponse
(SAML2Response saml2Response) protected static String
validateUrl
(String url) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
JWT_CLAIM_IDP_ENTITYID
- See Also:
-
JWT_CLAIM_NAMEID_FORMAT
- See Also:
-
JWT_CLAIM_NAMEID_VALUE
- See Also:
-
JWT_CLAIM_SESSIONINDEX
- See Also:
-
ENCRYPTOR
-
accessTokenDataBinder
-
saml2ClientCacheLogin
-
saml2ClientCacheLogout
-
userManager
-
idpDAO
-
authDataAccessor
-
metadataCache
-
perContextRACP
-
props
-
resourceResolver
-
-
Constructor Details
-
SAML2SP4UILogic
public SAML2SP4UILogic(SAML2SP4UIProperties props, ResourcePatternResolver resourceResolver, AccessTokenDataBinder accessTokenDataBinder, SAML2ClientCache saml2ClientCacheLogin, SAML2ClientCache saml2ClientCacheLogout, SAML2SP4UIUserManager userManager, SAML2SP4UIIdPDAO idpDAO, AuthDataAccessor authDataAccessor)
-
-
Method Details
-
validateUrl
-
getCallbackUrl
-
getMetadata
@PreAuthorize("isAuthenticated()") public void getMetadata(String spEntityID, String urlContext, OutputStream os) -
getSAML2Client
protected org.pac4j.saml.client.SAML2Client getSAML2Client(SAML2ClientCache saml2ClientCache, SAML2SP4UIIdP idp, String spEntityID, String urlContext) -
getSAML2Client
protected org.pac4j.saml.client.SAML2Client getSAML2Client(SAML2ClientCache saml2ClientCache, String idpEntityID, String spEntityID, String urlContext) -
buildRequest
protected static SAML2Request buildRequest(String idpEntityID, org.pac4j.core.exception.http.RedirectionAction action) -
getRequestedAuthnContextProvider
protected Optional<RequestedAuthnContextProvider> getRequestedAuthnContextProvider(SAML2SP4UIIdP idp) -
createLoginRequest
@PreAuthorize("hasRole(\'ANONYMOUS\')") public SAML2Request createLoginRequest(String spEntityID, String urlContext, String idpEntityID) -
validateLoginResponse
@PreAuthorize("hasRole(\'ANONYMOUS\')") public SAML2LoginResponse validateLoginResponse(SAML2Response saml2Response) -
createLogoutRequest
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") public SAML2Request createLogoutRequest(String accessToken, String spEntityID, String urlContext) -
validateLogoutResponse
@PreAuthorize("hasRole(\'ANONYMOUS\')") public void validateLogoutResponse(SAML2Response saml2Response) -
resolveReference
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<EntityTO>
- Throws:
UnresolvedReferenceException
-
newSAML2Configuration
protected org.pac4j.saml.config.SAML2Configuration newSAML2Configuration()
-