Class SSOSamlProfileCallbackHandlerController
- java.lang.Object
-
- org.apereo.cas.support.saml.web.idp.profile.AbstractSamlProfileHandlerController
-
- org.apereo.cas.support.saml.web.idp.profile.sso.SSOSamlProfileCallbackHandlerController
-
public class SSOSamlProfileCallbackHandlerController extends AbstractSamlProfileHandlerController
This isSSOSamlProfileCallbackHandlerController, which handles the profile callback request to build the final saml response.- Since:
- 5.0.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.support.saml.web.idp.profile.AbstractSamlProfileHandlerController
samlProfileHandlerConfigurationContext
-
-
Constructor Summary
Constructors Constructor Description SSOSamlProfileCallbackHandlerController(SamlProfileHandlerConfigurationContext samlProfileHandlerConfigurationContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static org.apache.commons.lang3.tuple.Pair<org.opensaml.saml.saml2.core.AuthnRequest,org.opensaml.messaging.context.MessageContext>buildAuthenticationContextPair(javax.servlet.http.HttpServletRequest request, org.opensaml.saml.saml2.core.AuthnRequest authnRequest)Build authentication context pair pair.protected java.lang.StringdetermineProfileBinding(org.apache.commons.lang3.tuple.Pair<org.opensaml.saml.saml2.core.AuthnRequest,org.opensaml.messaging.context.MessageContext> authenticationContext, org.jasig.cas.client.validation.Assertion assertion)Determine profile binding.protected voidhandleCallbackProfileRequest(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)Handle callback profile request.-
Methods inherited from class org.apereo.cas.support.saml.web.idp.profile.AbstractSamlProfileHandlerController
buildCasAssertion, buildCasAssertion, buildRedirectUrlByRequestedAuthnContext, buildSamlResponse, constructServiceUrl, decodeSoapRequest, getAuthenticationContextMappings, getRegisteredServiceAndFacade, getSamlMetadataFacadeFor, getSamlMetadataFacadeFor, handleUnauthorizedServiceException, initiateAuthenticationRequest, issueAuthenticationRequestRedirect, logCasValidationAssertion, retrieveSamlAuthenticationRequestFromHttpRequest, verifyAuthenticationContextSignature, verifyAuthenticationContextSignature, verifySamlAuthenticationRequest, verifySamlRegisteredService
-
-
-
-
Constructor Detail
-
SSOSamlProfileCallbackHandlerController
public SSOSamlProfileCallbackHandlerController(SamlProfileHandlerConfigurationContext samlProfileHandlerConfigurationContext)
-
-
Method Detail
-
buildAuthenticationContextPair
protected static org.apache.commons.lang3.tuple.Pair<org.opensaml.saml.saml2.core.AuthnRequest,org.opensaml.messaging.context.MessageContext> buildAuthenticationContextPair(javax.servlet.http.HttpServletRequest request, org.opensaml.saml.saml2.core.AuthnRequest authnRequest)Build authentication context pair pair.- Parameters:
request- the requestauthnRequest- the authn request- Returns:
- the pair
-
handleCallbackProfileRequest
@GetMapping(path="/idp/profile/SAML2/Callback") protected void handleCallbackProfileRequest(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws java.lang.ExceptionHandle callback profile request.- Parameters:
response- the responserequest- the request- Throws:
java.lang.Exception- the exception
-
determineProfileBinding
protected java.lang.String determineProfileBinding(org.apache.commons.lang3.tuple.Pair<org.opensaml.saml.saml2.core.AuthnRequest,org.opensaml.messaging.context.MessageContext> authenticationContext, org.jasig.cas.client.validation.Assertion assertion)Determine profile binding.- Parameters:
authenticationContext- the authentication contextassertion- the assertion- Returns:
- the string
-
-