firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Customize SAML Authnrequest generated by firebase

Open valentinoavon opened this issue 3 years ago • 3 comments

[REQUIRED] Describe your environment

Operating System version: Windows 10 Browser version: Chrome 87.0.4280.88 Firebase SDK version: 8.0.0 Firebase Product: auth

[REQUIRED] Describe the problem

I need to signin users with an external identity provider through SAML 2.0 protocol. I tried to use the firebase auth signInWithPopup with a custom SAML auth provider for signing in users. In particular, I set up the new provider in the google console giving the certificate and all the required data.

The problem is that firebase automatically generates the AuthnRequest which is given to the Identity provider. Since the identity provider I need to use is based on specifications which require the AuthnRequest to have specific information, we cannot use the firebase auth api. In fact we would need in the AuthnRequest:

  • NameQualifier and Format attributes in the Issuer
  • NameIDPolicy
  • RequestedAuthnContext

The missing information make the identity provider to reject the request unfortunately.

It would be amazing to be able to customize the AuthnRequest while signing in users with SAML. Would it be possible to do that? It would be really helpful...

Thank you, Valentino

valentinoavon avatar Dec 24 '20 16:12 valentinoavon

I've filed this internally as a feature request (b/176911662).

yuchenshi avatar Jan 06 '21 19:01 yuchenshi

Any updates?

hapiben avatar Dec 18 '22 09:12 hapiben

Is there an update for this?

Stofkat avatar Feb 06 '24 09:02 Stofkat