@@ -8,8 +8,8 @@ to eliminate boilerplate code and promote best practices.
88
99FirebaseUI Auth provides a drop-in auth solution that handles the UI flows for
1010signing 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
1313[ Firebase Auth] ( https://firebase.google.com/docs/auth ) .
1414
1515The FirebaseUI component implements best practices for authentication on mobile
@@ -22,9 +22,9 @@ FirebaseUI Auth clients are also available for
2222[ Android] ( https://github.com/firebase/firebaseui-android ) .
2323
2424FirebaseUI 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
2828underlying Firebase core SDK supports them in a way that is compatible with
2929FirebaseUI.
3030
@@ -60,8 +60,8 @@ You just need to include the following script and CSS file in the `<head>` tag
6060of your page, below the initialization snippet from the Firebase Console:
6161
6262``` 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" />
6565```
6666
6767#### Localized Widget
@@ -70,17 +70,17 @@ Localized versions of the widget are available through the CDN. To use a localiz
7070localized JS library instead of the default library:
7171
7272``` 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" />
7575```
7676
7777where ` {LANGUAGE_CODE} ` is replaced by the code of the language you want. For example, the French
7878version 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
8080languages and their respective language codes can be found at [ LANGUAGES.md] ( LANGUAGES.md ) .
8181
8282Right-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
8484stylesheet. The supported right-to-left languages are Arabic (ar), Farsi (fa), and Hebrew (iw).
8585
8686### Option 2: npm Module
@@ -159,6 +159,7 @@ provider you want to use in their own developer app settings. Please read the
159159- [ Github] ( https://firebase.google.com/docs/auth/web/github-auth#before_you_begin )
160160- [ Anonymous] ( https://firebase.google.com/docs/auth/web/anonymous-auth#before_you_begin )
161161- [ 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 )
162163- [ Microsoft] ( https://firebase.google.com/docs/auth/web/microsoft-oauth )
163164- [ Yahoo] ( https://firebase.google.com/docs/auth/web/yahoo-oauth )
164165
@@ -195,8 +196,8 @@ for a more in-depth example, showcasing a Single Page Application mode.
195196 * TODO(DEVELOPER): Paste the initialization snippet from:
196197 * Firebase Console > Overview > Add Firebase to your web app. *
197198 ***************************************************************************************** -->
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" />
200201 <script type =" text/javascript" >
201202 // FirebaseUI config.
202203 var uiConfig = {
@@ -544,6 +545,7 @@ To see FirebaseUI in action with one-tap sign-up, check out the FirebaseUI
544545| Email and password| ` firebase.auth.EmailAuthProvider.PROVIDER_ID ` |
545546| Phone number | ` firebase.auth.PhoneAuthProvider.PROVIDER_ID ` |
546547| Anonymous | ` firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID ` |
548+ | Apple | ` apple.com ` |
547549| Microsoft | ` microsoft.com ` |
548550| Yahoo | ` yahoo.com ` |
549551| SAML (GCIP only) | ` saml.********* ` |
@@ -590,10 +592,25 @@ ui.start('#firebaseui-auth-container', {
590592#### Generic OAuth provider
591593
592594You can let your users authenticate with FirebaseUI using OAuth providers like
595+ [ Apple] ( https://firebase.google.com/docs/auth/web/apple ) ,
593596[ Microsoft Azure Active Directory] ( https://firebase.google.com/docs/auth/web/microsoft-oauth )
594597and [ Yahoo] ( https://firebase.google.com/docs/auth/web/yahoo-oauth )
595598by integrating generic OAuth Login into your app.
596599
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.
597614Generic OAuth providers' ` signInOptions ` support the following configuration
598615parameters.
599616
@@ -623,7 +640,7 @@ parameters.
623640</tr >
624641<tr >
625642<td >buttonColor</td >
626- <td >Yes </td >
643+ <td >No </td >
627644<td >
628645 The color of sign in button. The css of the button can be overwritten with
629646 the attribute/value in the HTML element:
@@ -632,7 +649,7 @@ parameters.
632649</tr >
633650<tr >
634651<td >iconUrl</td >
635- <td >Yes </td >
652+ <td >No </td >
636653<td >
637654 The URL of the Identity Provider's icon. This will be displayed on the
638655 provider's sign-in button, etc.
@@ -1228,8 +1245,8 @@ FirebaseUI is displayed.
12281245 * TODO (DEVELOPER ): Paste the initialization snippet from:
12291246 * Firebase Console > Overview > Add Firebase to your web app. *
12301247 ***************************************************************************************** -->
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" / >
12331250 < script type= " text/javascript" >
12341251 // FirebaseUI config.
12351252 var uiConfig = {
0 commit comments