forked from firebase/firebaseui-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support disable new email user sign up (firebase#826)
* Add support for disabling new email user sign up.
- Loading branch information
Showing
103 changed files
with
1,456 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
* Fixes `signInFailure` return type to also include void to match external documentation. Fixes | ||
https://github.com/firebase/firebaseui-web/issues/770 | ||
* Adds support for disabling new user sign up in email providers, disable new user sign up via project settings and blocking functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -878,6 +878,19 @@ You can configure either email/password or email/link sign-in with FirebaseUI by | |
providing the relevant object in the configuration <code>signInOptions</code> | ||
array. | ||
|
||
You can disable new user sign up with email providers by setting the flag | ||
`disableSignUp.status` to `true`. This will display an error message when new | ||
users attempt to sign up. | ||
|
||
Note that this flag will only disable sign up from the UI and will not prevent | ||
sign up via REST API. It is highly recommended that Identity Platform projects | ||
enforce this policy via one of these 2 mechanisms: | ||
|
||
- Blocking functions: Set a `beforeCreate` trigger to disable sign up for email | ||
providers. | ||
- In the Cloud Console / Settings / USERS tab, uncheck `Enable create (sign-up)` | ||
checkbox. Though for this setting, sign up for all providers will be disabled. | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
|
@@ -949,6 +962,21 @@ array. | |
This is only relevant to email link sign-in. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>disableSignUp</td> | ||
<td><code>firebaseui.auth.DisableSignUpConfig</code></td> | ||
<td>No</td> | ||
<td> | ||
The object for configuring `disableSignUp` options, contains 3 fields: | ||
`status(boolean)`: Whether disable user from signing up with email providers | ||
(email/password or email link). | ||
`adminEmail(string|undefined)`: The optional site administrator email to | ||
contact for access when sign up is disabled, for example: `[email protected]`. | ||
`helpLink(string|undefined)`: The optional help link to provide information | ||
on how to get access to the site when sign up is disabled. For example: | ||
`https://www.example.com/trouble_signing_in`. | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.