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
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDataBinderprotected final AuthDataAccessorprotected final EncryptorManagerprotected final SAML2SP4UIIdPDAOprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final Map<String, RequestedAuthnContextProvider> protected final SAML2SP4UIPropertiesprotected final ResourcePatternResolverprotected final SAML2ClientCacheprotected final SAML2ClientCacheprotected final SAML2SP4UIUserManagerFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionSAML2SP4UILogic(SAML2SP4UIProperties props, ResourcePatternResolver resourceResolver, AccessTokenDataBinder accessTokenDataBinder, SAML2ClientCache saml2ClientCacheLogin, SAML2ClientCache saml2ClientCacheLogout, SAML2SP4UIUserManager userManager, SAML2SP4UIIdPDAO idpDAO, AuthDataAccessor authDataAccessor, EncryptorManager encryptorManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected static SAML2RequestbuildRequest(String idpEntityID, org.pac4j.core.exception.http.RedirectionAction action) createLoginRequest(String spEntityID, String urlContext, String idpEntityID, boolean reauth) createLogoutRequest(String accessToken, String spEntityID, String urlContext) protected static StringgetCallbackUrl(String spEntityID, String urlContext) voidgetMetadata(String spEntityID, String urlContext, OutputStream os) protected Optional<RequestedAuthnContextProvider> protected org.pac4j.saml.client.SAML2ClientgetSAML2Client(SAML2ClientCache saml2ClientCache, String idpEntityID, String spEntityID, String urlContext) protected org.pac4j.saml.client.SAML2ClientgetSAML2Client(SAML2ClientCache saml2ClientCache, SAML2SP4UIIdP idp, String spEntityID, String urlContext) protected org.pac4j.saml.config.SAML2Configurationprotected EntityTOresolveReference(Method method, Object... args) validateLoginResponse(SAML2Response saml2Response) voidvalidateLogoutResponse(SAML2Response saml2Response) protected static StringvalidateUrl(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:
-
accessTokenDataBinder
-
saml2ClientCacheLogin
-
saml2ClientCacheLogout
-
userManager
-
idpDAO
-
authDataAccessor
-
encryptorManager
-
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, EncryptorManager encryptorManager)
-
-
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, boolean reauth) -
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:
resolveReferencein classAbstractLogic<EntityTO>- Throws:
UnresolvedReferenceException
-
newSAML2Configuration
protected org.pac4j.saml.config.SAML2Configuration newSAML2Configuration()
-