Package org.keycloak.broker.saml
Class SAMLEndpoint
java.lang.Object
org.keycloak.broker.saml.SAMLEndpoint
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UserAuthenticationIdentityProvider.AuthenticationCallbackprotected final ClientConnectionprotected final SAMLIdentityProviderConfigprotected final DestinationValidatorprotected EventBuilderprotected final jakarta.ws.rs.core.HttpHeadersprotected static final org.jboss.logging.Loggerprotected final longprotected final SAMLIdentityProviderprotected final RealmModelstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final StringDeprecated.static final Stringstatic final Stringprotected final KeycloakSession -
Constructor Summary
ConstructorsConstructorDescriptionSAMLEndpoint(KeycloakSession session, SAMLIdentityProvider provider, SAMLIdentityProviderConfig config, UserAuthenticationIdentityProvider.AuthenticationCallback callback, DestinationValidator destinationValidator) -
Method Summary
Modifier and TypeMethodDescriptionprotected final Stringprotected final StringgetAttributeByFriendlyName(AssertionType assertion, String friendlyName) protected final StringgetAttributeByName(AssertionType assertion, String name) protected final StringgetFirstMatchingAttribute(AssertionType assertion, Predicate<AttributeType> predicate) protected final StringgetPrincipal(AssertionType assertion) jakarta.ws.rs.core.Responseprotected final NameIDTypegetSubjectNameID(AssertionType assertion) protected final StringgetX500Attribute(AssertionType assertion, X500SAMLProfileConstants attribute) jakarta.ws.rs.core.ResponsepostBinding(String samlRequest, String samlResponse, String samlArt, String relayState) jakarta.ws.rs.core.ResponsepostBindingIdpInitiated(String samlRequest, String samlResponse, String relayState, String clientId) jakarta.ws.rs.core.ResponseredirectBinding(String samlRequest, String samlResponse, String samlArt, String relayState) jakarta.ws.rs.core.ResponseredirectBindingIdpInitiated(String samlRequest, String samlResponse, String relayState, String clientId) protected final booleanvalidateInResponseToAttribute(ResponseType responseType, String expectedRequestId)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
SAML_FEDERATED_SESSION_INDEX
- See Also:
-
SAML_FEDERATED_SUBJECT
Deprecated.- See Also:
-
SAML_FEDERATED_SUBJECT_NAMEFORMAT
Deprecated.- See Also:
-
SAML_FEDERATED_SUBJECT_NAMEID
- See Also:
-
SAML_LOGIN_RESPONSE
- See Also:
-
SAML_ASSERTION
- See Also:
-
SAML_AUTHN_STATEMENT
- See Also:
-
realm
-
event
-
config
-
callback
-
provider
-
destinationValidator
-
session
-
clientConnection
-
headers
protected final jakarta.ws.rs.core.HttpHeaders headers -
maxInflatingSize
protected final long maxInflatingSize
-
-
Constructor Details
-
SAMLEndpoint
public SAMLEndpoint(KeycloakSession session, SAMLIdentityProvider provider, SAMLIdentityProviderConfig config, UserAuthenticationIdentityProvider.AuthenticationCallback callback, DestinationValidator destinationValidator)
-
-
Method Details
-
getSPDescriptor
@GET @Path("descriptor") public jakarta.ws.rs.core.Response getSPDescriptor() -
redirectBinding
-
postBinding
-
redirectBindingIdpInitiated
-
postBindingIdpInitiated
@Path("clients/{client_id}") @POST @Consumes("application/x-www-form-urlencoded") public jakarta.ws.rs.core.Response postBindingIdpInitiated(@FormParam("SAMLRequest") String samlRequest, @FormParam("SAMLResponse") String samlResponse, @FormParam("RelayState") String relayState, @PathParam("client_id") String clientId) -
getX500Attribute
protected final String getX500Attribute(AssertionType assertion, X500SAMLProfileConstants attribute) -
getAttributeByName
-
getAttributeByFriendlyName
-
getPrincipal
-
getFirstMatchingAttribute
protected final String getFirstMatchingAttribute(AssertionType assertion, Predicate<AttributeType> predicate) -
expectedPrincipalType
-
getSubjectNameID
-
validateInResponseToAttribute
protected final boolean validateInResponseToAttribute(ResponseType responseType, String expectedRequestId)
-