mirror of
https://github.com/floci-io/floci.git
synced 2026-12-03 10:17:48 -05:00
A SAML provider registered with CreateIdentityProvider now signs users in through /oauth2/authorize, as OIDC and Google providers do. Floci sends an unsigned AuthnRequest to the metadata's SingleSignOnService and accepts the response at /saml2/idpresponse, on a custom domain and on Floci's host, when its signature verifies with a metadata certificate, it answers the request Floci sent, and its issuer, audience, time window and bearer confirmation hold. The user is reconciled as <ProviderName>_<NameID>, its attributes mapped by SAML attribute name, and the client gets a Cognito authorization code. The signature check moves to core/common/SamlSignatures, shared with AssumeRoleWithSAML, and both now read an assertion's elements from their parents' own children, so nothing placed inside a signature, which its digest leaves out, is read.