You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this boilerplate users have the option to login via e-mail and password but also they can sign-up/sign-in with their Facebook, Google and Microsoft accounts.
643
+
644
+
<p align="center">
645
+
<img src="https://i.imgur.com/xQz5pSR.png">
646
+
</p>
647
+
648
+
### How it works?
649
+
650
+
We implemented social media authentication using Firebase!. You can take a look at their documentation [here](https://firebase.google.com/docs/auth/web/google-signin). In the following section we will explain how to configure each of these authentication methods.
651
+
652
+
### Can I add more login methods?
653
+
654
+
Yes you can!. We already have the setup in place for more login methods like Twitter, GitHub, etc. You can add them without chaning much code at all. You can see other login methods provided by Firebase [here](https://firebase.google.com/docs/auth/web/start).
635
655
636
656
### Facebook
637
657
638
-
Go to your [Firebase console](https://console.firebase.google.com/), select the proyect, then select Authentication on the Side Bar and Sign-in method. Click the Facebook logo, copy the OAuth redirect URI and keep this window open for later.
658
+
#### Enabling Facebook with Firebase
659
+
660
+
1. Go to your [Firebase console](https://console.firebase.google.com/).
661
+
2. Go to the "**Develop**" option and then click on "**Authentication**".
662
+
3. Go to the tab "**Sign-in method**".
663
+
4. Now select the "**Facebook**" option and copy the **_OAuth redirect URL_** provided by Firebase.
664
+
5. Keep this window open because we need to configure the app on Facebook's developer site.
639
665
640
-
Before setting your App id and the App secret on the Facebook Sign-in from the Firebase console, you will need to Log-in into your [Facebook for developers](https://developers.facebook.com/) account, create an app and configure it to make Sign-in via Facebook available.
666
+
#### Facebook for developers App configuration
641
667
642
-
**Facebook for developers App configuration**
668
+
Log-in/Sign-up into your [Facebook for developers](https://developers.facebook.com/) account, create an app and configure it to make Sign-in via Facebook available.
643
669
644
670
<ol>
645
671
<li>Name your App</li>
@@ -649,67 +675,67 @@ Before setting your App id and the App secret on the Facebook Sign-in from the F
649
675
<li>Select Product Settings > Facebook Login config on the Side Bar</li>
650
676
<li>Put your OAuth redirect URI (the one you copied in the past), you can verify your redirect URI at the buttom of this page</li>
651
677
<li>Select Configuration > Basic on the Side Bar</li>
652
-
<li>There you got your App id and your App secret for setting them on your proyect from the Firebase console</li>
678
+
<li>There you have your app id and your app secret for setting them on your project from the Firebase console</li>
653
679
</ol>
654
680
655
-
**Facebook for developers App configuration on production**
681
+
#### Continuing with the Firebase setup
656
682
657
683
<ol>
658
-
<li>Select Configuration > Basic on the Side Bar</li>
659
-
<li>Put your contact email and your privacy policy URL</li>
660
-
<li>At the buttom of the page, select Website and change the URL for your domain</li>
661
-
<li>Save Changes</li>
662
-
<li>Turn on the "on Development" switch</li>
684
+
<li>Go to the Firebase Console window we left open in the previous steps.</li>
685
+
<li>Put the app id and the app secret we recieved from the last section.</li>
686
+
<li>Enable the Facebook provider.</li>
663
687
</ol>
664
688
665
-
**Firebase console**
689
+
Now you have configured Facebook auth in you project.
690
+
691
+
#### Configure Facebook sign-in/sign-up for production
666
692
667
693
<ol>
668
-
<li>Go to the Firebase Console window from the beggining</li>
669
-
<li>Put the App id and the App secret</li>
670
-
<li>Enable the Facebook provider</li>
671
-
<li>Save</li>
694
+
<li>Select Configuration > Basic on the Side Bar</li>
695
+
<li>Put your contact email and your privacy policy URL</li>
696
+
<li>At the buttom of the page, select Website and change the URL for your domain</li>
697
+
<li>Save Changes</li>
698
+
<li>Turn off the "on Development" switch</li>
672
699
</ol>
673
700
674
-
For more on this [here](https://firebase.google.com/docs/auth/web/facebook-login).
701
+
You can have a more in-depth look about Facebook login with Firebase [here](https://firebase.google.com/docs/auth/web/facebook-login).
675
702
676
703
### Google
677
704
678
-
For setting your Google authentication you will only need to go to your proyect from the [Firebase console](https://console.firebase.google.com/), then select Authentication on the Side Bar and Sign-in method. Click the Google logo, select a Project support email, enable the Google provider and save.
705
+
For setting your Google authentication you will only need to go to your project from the [Firebase console](https://console.firebase.google.com/), then select Authentication on the Side Bar and Sign-in method. Click the Google logo, select a Project support email, enable the Google provider and save.
679
706
680
-
For more on this [here](https://firebase.google.com/docs/auth/web/google-signin).
707
+
You can have a more in-depth look about Google login with Firebase [here](https://firebase.google.com/docs/auth/web/google-signin).
681
708
682
709
### Microsoft
683
710
684
-
Go to your [Firebase console](https://console.firebase.google.com/), select the proyect, then select Authentication on the Side Bar and Sign-in method. Click the Microsoft logo, copy the redirect URL and keep this window open for later.
711
+
Go to your [Firebase console](https://console.firebase.google.com/), select the project, then select Authentication on the Side Bar and Sign-in method. Click the Microsoft logo, copy the redirect URL and keep this window open for later.
685
712
686
713
Before setting your Application id and the Application secret on the Microsoft Sign-in method from the Firebase console, you will need to log-in into your [Azure](https://portal.azure.com/) account, create an app and configure it to make Sign-in via Microsoft available.
687
714
688
-
**Azure App configuration**
715
+
#### Azure App configuration
689
716
690
717
<ol>
691
-
<li>Once you are logged to your account click the left, top corner and select Azure Active Directory</li>
692
-
<li>Under Manage, select App registration</li>
693
-
<li>Name your App</li>
694
-
<li>Specify who can use the application</li>
695
-
<li>Put your redirect URL (the one you copied in the past)</li>
696
-
<li>Select Register</li>
697
-
<li>Select Certificates & secrets from the Side Bar</li>
698
-
<li>Select Add a new client secret</li>
699
-
<li>Specify expiration time</li>
718
+
<li>Once you are logged to your account click the left, top corner and select Azure Active Directory.</li>
719
+
<li>Under Manage, select App registration.</li>
720
+
<li>Name your App.</li>
721
+
<li>Specify who can use the application.</li>
722
+
<li>Put your redirect URL (the one you already copied).</li>
723
+
<li>Select Register.</li>
724
+
<li>Select Certificates & secrets from the Side Bar.</li>
725
+
<li>Select Add a new client secret.</li>
726
+
<li>Set the expiration time.</li>
700
727
</ol>
701
728
702
729
For more on [Register](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app) and [configure the app](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis).
703
730
704
731
**Firebase console**
705
732
706
-
<li>Go to the Firebase Console window from the beggining</li>
707
-
<li>Put the Application id, located on Overview on your Azure App </li>
708
-
<li>Put Application secret, located on Certificates & secrets on your Azure App</li>
709
-
<li>Enable the Microsoft provider</li>
710
-
<li>Save</li>
733
+
<li>Go to the Firebase Console window from the beginning</li>
734
+
<li>Put the Application id, located on Overview on your Azure App.</li>
735
+
<li>Put Application secret, located on Certificates & secrets on your Azure App.</li>
736
+
<li>Enable the Microsoft provider.</li>
711
737
712
-
For more on this [here](https://firebase.google.com/docs/auth/web/microsoft-oauth).
738
+
You can have a more in-depth look about Microsoft login with Firebase [here](https://firebase.google.com/docs/auth/web/microsoft-oauth).
0 commit comments