Setting `signInOptions.disableSignUp.status = true` for `GoogleAuthProvider` still allows new users to register.
See original GitHub issue[REQUIRED] Describe your environment
- Operating System version: macOS 11.4
- Browser version: Chrome 91
- Firebase UI version: 4.8.0
- Firebase SDK version: 8.6.8
[REQUIRED] Describe the problem
Setting signInOptions.disableSignUp.status = true
for GoogleAuthProvider
does not work as expected and still allows new users to register.
Steps to reproduce:
- Initialize using the following signInOptions:
signInOptions: [
{
provider: firebase.auth.GoogleAuthProvider.PROVIDER_ID,
scopes: ["https://www.googleapis.com/auth/userinfo.email"],
disableSignUp: {
status: true,
},
}
]
- Try to sign up via Google with a new account
Relevant Code:
Expected: New users can not sign up with this provider set to disabled
Actual: New users can sign up and create new account with this provider.
Note: the option does work as expected with email provider.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to disable Signup in Firebase 3.x - Stack Overflow
I tried some rules on users and even to stop writing to firebase at all. However registration was still possible. Disabling Email/Password ...
Read more >Easily add sign-in to your Web app with FirebaseUI - Google
In the Firebase console, open the Authentication section and enable email and password authentication. · Add the email provider ID to the list...
Read more >FirebaseUI for Web — Auth - Firebase Open Source
You can disable new user sign up with email providers by setting the flag disableSignUp.status to true . This will display an error...
Read more >How to disable Signup in Firebase 3.x ... - GOOGLE IT SYSTEM
I have created some users using firebase.auth().signInWithEmailAndPassword and would like to stop signUp now, but keep signIn working.
Read more >this operation is restricted to administrators only - You.com
Enable authentication methods 'email' and 'google'; Register a new web app in firebase, and replace the firebaseConfig object in the code below with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davidbielik Thanks for the advice, we’ll make it more clear in the doc.
Thanks @xil222 looks like this feature is beyond a simple Firebase integration (it’s a separate API I need to enable). If that’s the case, it might be worth clarifying the conditions to use it in the docs.