Feature: Log in through SAML 2.0 identity providers 

Description 

Companies whose identity provider speaks SAML 2.0 but not OpenID Connect, such as older ADFS installations, can now offer single sign-on. An admin creates a provider of type saml from the provider's metadata address or document; adsum creates its own signing key per provider and publishes its metadata at /api/v1/auth/sso/{providerId}/saml-metadata (getSamlServiceProviderMetadata).

startSsoLogin sends a signed login request; the provider posts its answer to completeSamlLogin, which accepts only a signed answer to a request adsum sent in the last ten minutes, each assertion once, with a clock skew of at most two minutes. Linking, provisioning, role mapping, enforcement and the second-factor requirement work as for OpenID Connect, and API clients receive the same single-use code. Refused answers are recorded as ssoAssertionRejected.

Impact 

The new table saml_assertion_seen and new columns of identity_provider are created by the migration. The connection test of a SAML provider reports the checks samlMetadata and samlCertificate.