Skip to content

Commit a9c367d

Browse files
authored
chore: accountchooser.com shutdown (#762)
Release updates on accountchooser.com warnings & fix some issues.
1 parent 540ddc0 commit a9c367d

File tree

113 files changed

+562
-3325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+562
-3325
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Removes all accountchooser.com dependencies and deprecates all related APIs now that it is operating in universal opt-out mode.

README.md

Lines changed: 106 additions & 93 deletions
Large diffs are not rendered by default.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebaseui",
3-
"version": "4.2.0",
3+
"version": "2.5.1",
44
"description": "Javascript library for customizable UI on top of Firebase SDK",
55
"main": [
66
"./dist/firebaseui.js",

demo/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ Then copy and paste the Web snippet code found in the console (either by clickin
5151
your web app" button in your Project overview, or clicking the "Web setup" button in the Auth page)
5252
in the `config.js` file.
5353

54+
## Integrate One-tap sign-up with FirebaseUI (optional)
55+
56+
If you want to integrate with
57+
[One-tap sign-up](https://developers.google.com/identity/one-tap/web/overview),
58+
you will also need the Google OAuth web client ID corresponding to that project
59+
which can be retrieved from the Google Cloud Console. This value will need to be
60+
populated in `CLIENT_ID`.
61+
The domain of the page has to also be whitelisted. Learn more on how to
62+
[get started with One-tap sign-up](https://developers.google.com/identity/one-tap/web/get-started).
63+
Skip this step, if you don't want to use One-tap sign-up with FirebaseUI.
64+
5465
## Deploy
5566

5667
### Option 1: Compile and use local FirebaseUI files

demo/public/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function getUiConfig() {
6666
provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID,
6767
recaptchaParameters: {
6868
size: getRecaptchaMode()
69-
}
69+
},
7070
},
7171
{
7272
provider: 'microsoft.com',

demo/public/sample-config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ var config = {
2020
};
2121
firebase.initializeApp(config);
2222

23+
2324
// Google OAuth Client ID, needed to support One-tap sign-up.
2425
// Set to null if One-tap sign-up is not supported.
25-
var CLIENT_ID = 'YOUR_OAUTH_CLIENT_ID';
26+
var CLIENT_ID =
27+
'YOUR_OAUTH_CLIENT_ID';

externs/firebaseui-externs.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ firebaseui.auth.AuthUIError.prototype.toJSON = function() {};
467467

468468

469469
/**
470-
* The FirebaseUI credential helpers available.
471-
*
470+
* The FirebaseUI credential helpers available. `ACCOUNT_CHOOSER_COM` is
471+
* deprecated and will be removed by Jan 31st, 2021.
472472
* @enum {string}
473473
*/
474474
firebaseui.auth.CredentialHelper = {
@@ -487,8 +487,10 @@ firebaseui.auth.Config = function() {};
487487

488488
/**
489489
* The accountchooser.com configuration when it is selected as credential
490-
* helper.
490+
* helper. This is now a no-op and is deprecated and will be removed by
491+
* Jan 31st, 2021.
491492
*
493+
* @deprecated
492494
* @type {!Object|undefined}
493495
*/
494496
firebaseui.auth.Config.prototype.acUiConfig;
@@ -508,7 +510,8 @@ firebaseui.auth.Config.prototype.autoUpgradeAnonymousUsers;
508510
firebaseui.auth.Config.prototype.callbacks;
509511

510512
/**
511-
* Determines which credential helper to use. The default is accountchooser.com.
513+
* Determines which credential helper to use. By default, no credential helper
514+
* is selected.
512515
*
513516
* @type {!firebaseui.auth.CredentialHelper|undefined}
514517
*/
@@ -752,6 +755,7 @@ firebaseui.auth.FederatedSignInOption = function() {};
752755
* The Auth method (typically the authorization endpoint) needed for one-tap
753756
* sign-up, eg: 'https://accounts.google.com'.
754757
*
758+
* @deprecated
755759
* @type {string|undefined}
756760
*/
757761
firebaseui.auth.FederatedSignInOption.prototype.authMethod;

javascript/ui/element/dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ goog.provide('firebaseui.auth.ui.element.dialog');
2121
goog.require('firebaseui.auth.ui.element');
2222
goog.require('firebaseui.auth.ui.mdl');
2323
goog.require('goog.dom');
24+
goog.requireType('goog.ui.Component');
2425

2526

2627

javascript/ui/element/idps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ goog.provide('firebaseui.auth.ui.element.idps');
2121
goog.require('firebaseui.auth.ui.element');
2222
goog.require('goog.asserts');
2323
goog.require('goog.dom.dataset');
24+
goog.requireType('goog.ui.Component');
2425

2526

2627
/**

javascript/ui/element/newpassword.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ goog.provide('firebaseui.auth.ui.element.newPassword');
2121
goog.require('firebaseui.auth.soy2.strings');
2222
goog.require('firebaseui.auth.ui.element');
2323
goog.require('goog.dom.classlist');
24+
goog.requireType('goog.ui.Component');
2425

2526

2627
goog.scope(function() {

0 commit comments

Comments
 (0)