Previous Topic: Authentication Context Processing for IdP-initiated SSO

Next Topic: Determine Authentication Context and Strength Levels with your Partner


Authentication Context Processing for SP-Initiated SSO

When single sign-on is initiated at the SP, authentication context processing follows these steps:

  1. The SP sends an authentication request with the <RequestedAuthnContext> element and a comparison operator. The element is included based on a setting in the configuration of the SP-> IdP partnership.
  2. When the IdP receives the request, the IdP authenticates the user and a user session is generated. Associated with the session is a protection level for the authentication scheme.
  3. Depending on the authentication context configuration at the IdP, one of the following conditions occur:
  4. The IdP compares the AuthnContext against the authentication class for the user session. The comparison is based on the comparison operator that is sent with the request. See the table that follows this procedure for examples of how each comparison operator affects processing.

    If the SP includes multiple authentication context URIs in the request, the classes are compared one-by-one in sequential order against the context for the session. At the first successful comparison, the IdP adds the session authentication context to the assertion.

  5. If the comparison is successful, then the authentication context is added to the assertion sent to the SP.

    If the comparison is not successful, the transaction is terminated with a "noauthncontext" status response.

  6. At the SP, a second comparison takes place between the authentication context from the assertion and the one configured at the SP. If this comparison is successful, the authentication transaction is complete.

The following table shows examples of how an authentication context is processed depending on the comparison attribute sent in the authentication context request.

SP-requested Authentication Context

Comparison Attribute Value

IdP-configured Authentication Context

Status Response

Password

exact

InternetProtocol

NoAuthnContext

Password

minimum

InternetProtocol

NoAuthnContext

Password

better

InternetProtocol

NoAuthnContext

InternetProtocol

exact

InternetProtocol

Success

InternetProtocol

minimum

InternetProtocol

Success

InternetProtocol

maximum

InternetProtocol

Success

InternetProtocol

maximum

Password

NoAuthnContext

InternetProtocol

better

Password

Success