SURFsecureID is SURF's stepup up authentication as a service offering. Institutions can procure this service and let SURF handle step-up authentication to services, including services connected via SURFconext.
For most cases, the Service Provider does not need to change anything or be aware of this. During authentication SURFsecureID is invoked if so configured by the institution and the authentication will proceed as any other. There is one case that does involve the SP. This is where the SP employs the option of dynamically choosing at authentication time which Level of Assurance the user needs to authenticate at. An example is that anyone with only the first factor can log into the service. But in order to perform certain actions, proof of a higher level of assurance is needed.
How it works
Any service provider connected to SURFconext (SAML or OIDC) can ask for a level of assurance as an optional field in the authentication request; no special configuration is needed on the side of SURFconext so you can just start to use it. It is however only useful to do so if the relevant institution(s) use SURFsecureID, otherwise the request will never succeed.
If you just want SURFsecureID with a certain level of assurance enabled for all logins to your service, or all logins from a specific IdP, this option is not for you. This can just be configured on the side of SURFconext and the SP does not need to change anything. You use the option described in this document if you want to use different levels of assurance at different times with the same SP/IdP.
A common use case is to only request the higher level of assurance if the user wants to perform a sensitive action. You let users log into the SP with only the first factor (i.e. not specify anything in particular in the authentication request). Inside the application, when they reach the sensitive action, you start a new authentication request to SURFconext with the higher LoA. Because of Single Sign On, the user will mostly not be asked the first factor again, but will be asked to provide the second factor. After that you receive the authentication back with a statement at which level the user was authenticated.
If any other method of SURFsecureID is configured on the side of SURFconext, the highest level of assurance 'wins'. It is therefore not possible to request a lower level via an AuthnRequest than the minimum level set in other configuration.
Technical implementation
The levels of assurance differ between the SURFconext Test and production environments and take the form of an URL, e.g. http://test.surfconext.nl/assurance/loa2.
For more information about the supported Levels of Assurance (LoA), see Levels of Assurance.
You request a LoA at authentication, but it is imperative that you always verify whether it was indeed attained in the returned assertion/token. Your implementation is only secure if you check the received message for the actual level that was used.
SAML 2.0
For SP's connected via SAML 2.0, you specify the LoA URL conform the SAML 2.0 speification in the SAML AuthnRequest in the AuthnContextClassRef
element in a RequestedAuthnContext
element. All mainstream SAML implementations support this. The request does not need to be signed.
When successful, SURFconext will return a regular assertion in the form it always does for your SP. The AuthnConext element will contain an AuthnContextClassRef with the actual LoA that was presented by the user. Note that this can be higher than the requested minimum. You must check if this value is the same or higher than the one you specified in the request.
OpenID Connect
When using SURFconext via OpenID connect, you request the LoA URL In the acr_values
key of the authorization request.
You will find in the ID token the acr
claim with the actual LoA that was presented by the user. Note that this can be higher than the requested minimum. You must check if this value is the same or higher than the one you specified in the request.
The SURFconext OIDC Playground has an "ACR values" option where you can experiment with requesting amongst others the SURFsecureID LoA values.