@@ -8,8 +8,8 @@ to eliminate boilerplate code and promote best practices.
8
8
9
9
FirebaseUI Auth provides a drop-in auth solution that handles the UI flows for
10
10
signing in users with email addresses and passwords, phone numbers, Identity
11
- Provider Sign In including Google, Facebook, GitHub, Twitter, Microsoft, Yahoo ,
12
- OpenID Connect (OIDC) providers and SAML providers. It is built on top of
11
+ Provider Sign In including Google, Facebook, GitHub, Twitter, Apple, Microsoft ,
12
+ Yahoo, OpenID Connect (OIDC) providers and SAML providers. It is built on top of
13
13
[ Firebase Auth] ( https://firebase.google.com/docs/auth ) .
14
14
15
15
The FirebaseUI component implements best practices for authentication on mobile
@@ -22,9 +22,9 @@ FirebaseUI Auth clients are also available for
22
22
[ Android] ( https://github.com/firebase/firebaseui-android ) .
23
23
24
24
FirebaseUI fully supports all recent browsers. Signing in with federated
25
- providers (Google, Facebook, Twitter, GitHub, Microsoft, Yahoo, OIDC, SAML) is
26
- also supported in Cordova/Ionic environments. Additional non-browser
27
- environments (React Native...) or Chrome extensions will be added once the
25
+ providers (Google, Facebook, Twitter, GitHub, Apple, Microsoft, Yahoo, OIDC,
26
+ SAML) is also supported in Cordova/Ionic environments. Additional non-browser
27
+ environments(React Native...) or Chrome extensions will be added once the
28
28
underlying Firebase core SDK supports them in a way that is compatible with
29
29
FirebaseUI.
30
30
@@ -60,8 +60,8 @@ You just need to include the following script and CSS file in the `<head>` tag
60
60
of your page, below the initialization snippet from the Firebase Console:
61
61
62
62
``` html
63
- <script src =" https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth.js" ></script >
64
- <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth.css" />
63
+ <script src =" https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth.js" ></script >
64
+ <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth.css" />
65
65
```
66
66
67
67
#### Localized Widget
@@ -70,17 +70,17 @@ Localized versions of the widget are available through the CDN. To use a localiz
70
70
localized JS library instead of the default library:
71
71
72
72
``` html
73
- <script src =" https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth__{LANGUAGE_CODE}.js" ></script >
74
- <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth.css" />
73
+ <script src =" https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth__{LANGUAGE_CODE}.js" ></script >
74
+ <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth.css" />
75
75
```
76
76
77
77
where ` {LANGUAGE_CODE} ` is replaced by the code of the language you want. For example, the French
78
78
version of the library is available at
79
- ` https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth__fr.js ` . The list of available
79
+ ` https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth__fr.js ` . The list of available
80
80
languages and their respective language codes can be found at [ LANGUAGES.md] ( LANGUAGES.md ) .
81
81
82
82
Right-to-left languages also require the right-to-left version of the stylesheet, available at
83
- ` https://www.gstatic.com/firebasejs/ui/4.2 .0/firebase-ui-auth-rtl.css ` , instead of the default
83
+ ` https://www.gstatic.com/firebasejs/ui/4.3 .0/firebase-ui-auth-rtl.css ` , instead of the default
84
84
stylesheet. The supported right-to-left languages are Arabic (ar), Farsi (fa), and Hebrew (iw).
85
85
86
86
### Option 2: npm Module
@@ -159,6 +159,7 @@ provider you want to use in their own developer app settings. Please read the
159
159
- [ Github] ( https://firebase.google.com/docs/auth/web/github-auth#before_you_begin )
160
160
- [ Anonymous] ( https://firebase.google.com/docs/auth/web/anonymous-auth#before_you_begin )
161
161
- [ Email link] ( https://firebase.google.com/docs/auth/web/email-link-auth#before_you_begin )
162
+ - [ Apple] ( https://firebase.google.com/docs/auth/web/apple )
162
163
- [ Microsoft] ( https://firebase.google.com/docs/auth/web/microsoft-oauth )
163
164
- [ Yahoo] ( https://firebase.google.com/docs/auth/web/yahoo-oauth )
164
165
@@ -195,8 +196,8 @@ for a more in-depth example, showcasing a Single Page Application mode.
195
196
* TODO(DEVELOPER): Paste the initialization snippet from:
196
197
* Firebase Console > Overview > Add Firebase to your web app. *
197
198
***************************************************************************************** -->
198
- <script src =" https://cdn.firebase .com/libs/firebaseui /4.2 .0/firebaseui .js" ></script >
199
- <link type =" text/css" rel =" stylesheet" href =" https://cdn.firebase .com/libs/firebaseui /4.2 .0/firebaseui .css" />
199
+ <script src =" https://www.gstatic .com/firebasejs/ui /4.3 .0/firebase-ui-auth .js" ></script >
200
+ <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic .com/firebasejs/ui /4.3 .0/firebase-ui-auth .css" />
200
201
<script type =" text/javascript" >
201
202
// FirebaseUI config.
202
203
var uiConfig = {
@@ -544,6 +545,7 @@ To see FirebaseUI in action with one-tap sign-up, check out the FirebaseUI
544
545
| Email and password| ` firebase.auth.EmailAuthProvider.PROVIDER_ID ` |
545
546
| Phone number | ` firebase.auth.PhoneAuthProvider.PROVIDER_ID ` |
546
547
| Anonymous | ` firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID ` |
548
+ | Apple | ` apple.com ` |
547
549
| Microsoft | ` microsoft.com ` |
548
550
| Yahoo | ` yahoo.com ` |
549
551
| SAML (GCIP only) | ` saml.********* ` |
@@ -590,10 +592,25 @@ ui.start('#firebaseui-auth-container', {
590
592
#### Generic OAuth provider
591
593
592
594
You can let your users authenticate with FirebaseUI using OAuth providers like
595
+ [ Apple] ( https://firebase.google.com/docs/auth/web/apple ) ,
593
596
[ Microsoft Azure Active Directory] ( https://firebase.google.com/docs/auth/web/microsoft-oauth )
594
597
and [ Yahoo] ( https://firebase.google.com/docs/auth/web/yahoo-oauth )
595
598
by integrating generic OAuth Login into your app.
596
599
600
+ You just need to pass the provider ID in ` signInOptions ` , FirebaseUI provides
601
+ the default configurations for the sign in button(button color, icon and display name):
602
+
603
+ ``` javascript
604
+ ui .start (' #firebaseui-auth-container' , {
605
+ signInOptions: [
606
+ ' apple.com' ,
607
+ ' microsoft.com' ,
608
+ ' yahoo.com' ,
609
+ ]
610
+ });
611
+ ```
612
+
613
+ You can also override these default configurations with your own custom ones.
597
614
Generic OAuth providers' ` signInOptions ` support the following configuration
598
615
parameters.
599
616
@@ -623,7 +640,7 @@ parameters.
623
640
</tr >
624
641
<tr >
625
642
<td >buttonColor</td >
626
- <td >Yes </td >
643
+ <td >No </td >
627
644
<td >
628
645
The color of sign in button. The css of the button can be overwritten with
629
646
the attribute/value in the HTML element:
@@ -632,7 +649,7 @@ parameters.
632
649
</tr >
633
650
<tr >
634
651
<td >iconUrl</td >
635
- <td >Yes </td >
652
+ <td >No </td >
636
653
<td >
637
654
The URL of the Identity Provider's icon. This will be displayed on the
638
655
provider's sign-in button, etc.
@@ -1228,8 +1245,8 @@ FirebaseUI is displayed.
1228
1245
* TODO (DEVELOPER ): Paste the initialization snippet from:
1229
1246
* Firebase Console > Overview > Add Firebase to your web app. *
1230
1247
***************************************************************************************** -->
1231
- < script src= " https://cdn.firebase .com/libs/firebaseui /4.2 .0/firebaseui .js" >< / script>
1232
- < link type= " text/css" rel= " stylesheet" href= " https://cdn.firebase .com/libs/firebaseui /4.2 .0/firebaseui .css" / >
1248
+ < script src= " https://www.gstatic .com/firebasejs/ui /4.3 .0/firebase-ui-auth .js" >< / script>
1249
+ < link type= " text/css" rel= " stylesheet" href= " https://www.gstatic .com/firebasejs/ui /4.3 .0/firebase-ui-auth .css" / >
1233
1250
< script type= " text/javascript" >
1234
1251
// FirebaseUI config.
1235
1252
var uiConfig = {
0 commit comments