SSO and SLO in standalone mode
SSO lets users sign in once and remain authenticated as they access services in the circle of trust.
SLO attempts to log out all session participants:
-
For hosted IdPs, single logout attempts to log out of all SPs with which the session established SAML federation.
-
For hosted SPs, single logout attempts to log out of the IdP that was the source of the assertion for the authenticated session.
SSO and SLO URLs
With standalone mode, Advanced Identity Cloud SAML 2.0 federation provides servlet URLs that direct users to do SSO and SLO across providers in a circle of trust.
|
Previous versions of AM provided JSPs as entry points to standalone mode. The URL endpoints replace these legacy JSPs, although the JSPs remain available for backward compatibility. |
Make sure you accurately URL-encode any query parameters that you specify when accessing the URLs.
IdP-initiated SSO URL
idpssoinit-
Used to initiate SSO from the IdP side. Call this on the IDP not the SP.
The following URL initiates SSO from the IdP side, leaving the user at https://pingidentity.com:
+
https://<tenant-env-fqdn>/am/idpssoinit
?metaAlias=/idp&spEntityID=https%3A%2F%2Fwww.sp.com%3A8443%2Fam
&RelayState=https%3A%2F%2Fpingidentity.com
idpssoinit query parameters
metaAlias-
(Required) Use this parameter to specify the local alias for the provider, such as,
metaAlias=/alpha/idp.This parameter takes the format
/realm-name/provider-name, as described in MetaAlias. spEntityID-
(Required) Use this parameter to indicate the remote service provider.
Make sure you URL-encode the value. For example, specify
spEntityID=https://www.sp.com:8443/amasspEntityID=https%3A%2F%2Fwww.sp.com%3A8443%2Fam. affiliationID-
(Optional) Use this parameter to specify a SAML affiliation identifier.
binding-
(Optional) Use this parameter to indicate which binding to use for the operation.
For example, specify
binding=HTTP-POSTto use HTTP POST binding with a self-submitting form. You can also specifybinding=HTTP-Artifact. NameIDFormat-
(Optional) Use this parameter to specify a SAML Name Identifier format identifier.
For example,
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, orurn:oasis:names:tc:SAML:2.0:nameid-format:transient. RelayState-
(Optional) Use this parameter to specify where to redirect the user when the process is complete. Make sure you URL-encode the value.
For example,
RelayState=https%3A%2F%2Fpingidentity.comtakes the user tohttps://pingidentity.com. RelayStateAlias-
(Optional) Use this parameter to specify the parameter to use as
RelayState.For example, if the query string
target=https%3A%2F%2Fpingidentity.com&RelayStateAlias=target, is equivalent toRelayState=https%3A%2F%2Fpingidentity.com.
IdP-initiated SLO URL
IDPSloInit-
Used to initiate SLO from the IdP.
The following URL performs SLO from the IdP side using a self-submitting form rather than a redirect,
leaving the user at https://example.com:
+
https://<tenant-env-fqdn>/am/IDPSloInit
?binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
&RelayState=https%3A%2F%example.com
IDPSloInit query parameters
binding-
(Required) Use this parameter to indicate which binding to use for the operation. The full, long name format is required for this parameter to work.
The value must be one of the following:
-
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect -
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST -
urn:oasis:names:tc:SAML:2.0:bindings:SOAP
-
Consent-
(Optional) Use this parameter to specify a URI that is a SAML consent identifier.
Destination-
(Optional) Use this parameter to specify a URI reference indicating the address to which the request is sent.
Extension-
(Optional) Use this parameter to specify a list of extensions as string objects.
goto-
(Optional) Use this parameter to specify where to redirect the user when the process is complete.
RelayStatetakes precedence over this parameter. logoutAll-
(Optional) Use this parameter to specify that the identity provider should send SLO requests to service providers without indicating a session index.
RelayState-
(Optional) Use this parameter to specify where to redirect the user when the process is complete. Make sure you URL-encode the value.
For example,
RelayState=https%3A%2F%2Fpingidentity.comtakes the user tohttps://pingidentity.com.To ensure the redirect is permitted, add the URL to the
RelayState URL List. For details of this setting, refer to the IDP advanced reference section.
SP-initiated SSO URL
spssoinit-
Use this page to initiate SSO from the SP side.
The following URL redirects the user from the SP to authenticate at the IdP and back to their profile page at the SP after successful SSO.
+
https://<tenant-env-sp-fqdn>/am/spssoinit
?metaAlias=/sp
&idpEntityID=https%3A%2F%2Fwww.idp.com%3A8443%2Fam
&RelayState=https%3A%2F%2Fwww.sp.com%3A8443%2Fam%2FXUI%2F%23profile%2Fdetails
spssoinit query parameters
idpEntityID-
(Required) Use this parameter to indicate the remote IdP. Make sure you URL-encode the value.
For example, encode
idpEntityID=https://www.idp.com:8443/amas:idpEntityID=https%3A%2F%2Fwww.idp.com%3A8443%2Fam. metaAlias-
(Required) Use this parameter to specify the local alias for the provider, such as
metaAlias=/alpha/sp.This parameter takes the format
/realm-name/provider-nameas described in MetaAlias. affiliationID-
(Optional) Use this parameter to specify a SAML affiliation identifier.
AllowCreate-
(Optional) When set to
true, the IdP can create a new identifier for the principal if none exists. AssertionConsumerServiceIndex-
(Optional) Use this parameter to specify an integer that indicates the location to which the response message should be returned to the requester.
AuthComparison-
(Optional) Use this parameter to specify a comparison method to evaluate the requested context classes or statements.
Advanced Identity Cloud accepts the following values:
-
better. Specifies that the authentication context statement in the assertion must be better (stronger) than one of the provided authentication contexts.
-
exact. Specifies that the authentication context statement in the assertion must exactly match at least one of the provided authentication contexts.
-
maximum. Specifies that the authentication context statement in the assertion must not be stronger than any of the other provided authentication contexts.
-
minimum. Specifies that the authentication context statement in the assertion must be at least as strong as one of the provided authentication contexts.
-
AuthnContextClassRef-
(Optional) Use this parameter to specify authentication context class references. Separate multiple values with pipe (
|) characters. AuthnContextDeclRef-
(Optional) Use this parameter to specify authentication context declaration references. Separate multiple values with pipe (|) characters.
AuthLevel-
(Optional) Use this parameter to specify the authentication level of the authentication context that Advanced Identity Cloud should use to authenticate the user.
binding-
(Optional) Use this parameter to indicate which binding to use for the operation.
For example, specify
binding=HTTP-POSTto use HTTP POST binding with a self-submitting form. You can also specifybinding=HTTP-Artifact. Destination-
(Optional) Use this parameter to specify a URI Reference indicating the address to which the request is sent.
ForceAuthn-
(Optional) When set to
truethe identity provider should force authentication.When false, the IdP can reuse existing security contexts.
isPassive-
(Optional) When set to
truethe IdP authenticates passively.A value of trueis not honored if you have configured a SAML 2.0 app journey, and the journey includes a node that requires user interaction. NameIDFormat-
(Optional) Use this parameter to specify a SAML Name Identifier format identifier.
For example,
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, orurn:oasis:names:tc:SAML:2.0:nameid-format:transient. RelayState-
(Optional) Use this parameter to specify where to redirect the user when the process is complete. Make sure you URL-encode the value.
For example,
RelayState=https%3A%2F%2Fpingidentity.comtakes the user tohttps://pingidentity.com.To ensure the redirect is permitted, add the URL to the
RelayState URL List. For details of this setting, refer to the SP advanced section. RelayStateAlias-
(Optional) Use this parameter to specify the parameter to use as the
RelayState.For example, the query string
target=https%3A%2F%2Fpingidentity.com&RelayStateAlias=target, is the same asRelayState=https%3A%2F%2Fpingidentity.com. reqBinding-
(Optional) Use this parameter to indicate the binding to use for the authentication request.
Valid values in include
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect(default) andurn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST. sunamcompositeadvice-
(Optional) Use this parameter to specify a URL-encoded XML blob that specifies the authentication level advice.
For example, the following XML indicates a requested authentication level of 1. Notice the required : before the
1:<Advice> <AttributeValuePair> <Attribute name="AuthLevelConditionAdvice"/> <Value>/:1</Value> </AttributeValuePair> </Advice>
SP-initiated SLO URL
SPSloInit-
Used to initiate single logout from the SP.
The following URL initiates SLO from the SP side using the HTTP redirect method,
leaving the user at https://www.pingidentity.com:
+
https://<tenant-env-sp-fqdn>/am/SPSloInit
?binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
&RelayState=https%3A%2F%pingidentity.com
SPSloInit query parameters
binding-
(Required) Use this parameter to indicate which binding to use for the operation. The full, long name format is required for this parameter to work.
For example, specify
binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POSTto use HTTP POST binding with a self-submitting form, rather than the default HTTP redirect binding. You can also specifybinding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact. idpEntityID-
(Required for Fedlets) Use this parameter to indicate the remote identity provider. If the
bindingproperty is not set, then Advanced Identity Cloud uses this parameter to find the default binding. Make sure you URL-encode the value.For example, specify
idpEntityID=https://www.idp.com:8443/amasidpEntityID=https%3A%2F%2Fwww.idp.com%3A8443%2Fam. NameIDValue-
(Required for Fedlets) Use this parameter to indicate the SAML Name Identifier for the user.
SessionIndex-
(Required for Fedlets) Use this parameter to indicate the
sessionIndexof the authenticated session to terminate. Consent-
(Optional) Use this parameter to specify a URI that is a SAML Consent Identifier.
Destination-
(Optional) Use this parameter to specify a URI Reference indicating the address to which the request is sent.
Extension-
(Optional) Use this parameter to specify a list of extensions as string objects.
goto-
(Optional) Use this parameter to specify where to redirect the user when the process is complete.
The
RelayStateparameter takes precedence over this parameter. RelayState-
(Optional) Use this parameter to specify where to redirect the user when the process is complete. Make sure you URL-encode the value.
For example,
RelayState=https%3A%2F%2Fpingidentity.comtakes the user tohttps://pingidentity.com.To ensure the redirect is permitted, add the URL to the
RelayState URL List. For details of this setting, refer to the SP advanced section.
Use devices to access services
To use devices to access services, for example; simple phones, medical devices, or set-top boxes, use the SAML 2.0 Enhanced Client or Proxy (ECP) profile. This is used because certain devices lack the capabilities needed to use the more widely used SAML 2.0 Web Browser SSO profile.
The ECP knows which IdP to contact for the user, and is able to use the reverse SOAP (PAOS) SAML 2.0 binding for the authentication request and response.
The PAOS binding uses HTTP and SOAP headers to pass information about processing SOAP requests and responses, starting with a PAOS HTTP header that the ECP sends in its initial request to the server. The PAOS messages continue with a SOAP authentication request in the server’s HTTP response to the ECP’s request for a resource, followed by a SOAP response in an HTTP request from the ECP.
An enhanced client, such as a browser with a plugin or an extension, can handle these communications on its own. An enhanced proxy is an HTTP server, such as a WAP gateway, that can support the ECP profile on behalf of client applications.
Advanced Identity Cloud supports the SAML 2.0 ECP profile on the server side for IdPs and SPs.
You must build the ECP:
-
By default, an Advanced Identity Cloud IdP uses the
com.sun.identity.saml2.plugins.DefaultIDPECPSessionMapperclass to find an authenticated session for requests to the IdP from the ECP. The default session mapper uses Advanced Identity Cloud cookies as it would for any other client application.If you must change the mapping after writing and installing your own session mapper, go to Native Consoles > Access Management > Realms > Realm Name, then select Applications > Federation > Entity Providers > IDP Name > IDP > Advanced > ECP Configuration.
-
By default, an Advanced Identity Cloud SP uses the
com.sun.identity.saml2.plugins.ECPIDPFinderclass to return the IdP from the list of IdP entity IDs.You populate this list under Native Consoles > Access Management > Realms > Realm Name > Applications > Federation > Entity Providers > SP Name > SP > Advanced > ECP Configuration > Request IDP List.
-
The endpoint for the ECP to contact on the Advanced Identity Cloud SP is
/SPECPas inhttps://<tenant-env-sp-fqdn>/am/SPECP. -
The ECP provides two query string parameters to identify the SP and to specify the URL of the resource to access:
metaAlias-
This specifies the SP by default,
metaAlias=/realm-name/sp, as described in MetaAlias. RelayState-
This specifies the resource the client aims to access, such as
RelayState=https%3A%2F%2Fpingidentity.com. Make sure this parameter is URL-encoded.For example, to access the SP followed by the resource at
https://pingidentity.com, usehttps://<tenant-env-sp-fqdn>/am/SPECP?metaAlias=/sp&RelayState=https%3A%2F%2Fpingidentity.com.To ensure the redirect is permitted, add the URL to the
RelayState URL List. For details of this setting, refer to the services section.