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/ (get).
start sends a signed login request; the provider posts its answer to complete, 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 sso.
Impact
The new table saml_ and new columns of identity_ are created by the migration. The
connection test of a SAML provider reports the checks saml and saml.