auth icon indicating copy to clipboard operation
auth copied to clipboard

fix: ensure correct SAML Entity ID in client SSO flow

Open timkendrick opened this issue 2 months ago • 4 comments

When initiating a SAML client flow via the /sso endpoint, the service provider object Entity ID is omitted from the initialization options, causing the underlying saml library to incorrectly use the metadata URL for the SAML server as the Entity ID.

This causes some service providers (e.g. Microsoft Entra ID) to reject the SAML authentication request, as the inferred supabase auth server metadata URL does not match the provider's Entity ID.

This change ensures the service provider is correctly initialized with the provider Entity ID during the client auth flow, while retaining the existing behavior for the server metadata endpoint.

timkendrick avatar Oct 23 '25 17:10 timkendrick