Skip to content

Latest commit

 

History

History
 
 

auth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Firebase Auth Quickstart

The Firebase auth quickstart demonstrates several methods for signing in.

The Firebase email/password quickstart demonstrates using a Firebase stored email & password - you can both create and sign in a user.

The Firebase Google Sign in quickstarts demonstrate using a Google account to authenticate to Firebase using three different techniques: with a popup, a redirect and an auth token.

The Firebase Facebook Login quickstarts demonstrate using a Facebook account to authenticate to Firebase using three different techniques: with a popup, a redirect and an auth token.

The Firebase GitHub Login quickstarts demonstrate using a GitHub account to authenticate to Firebase using two different techniques: with a popup and a redirect.

The Firebase Twitter Login quickstarts demonstrate using a Twitter account to authenticate to Firebase using two different techniques: with a popup and a redirect.

The Firebase Anonymous auth quickstart demonstrates authenticate to Firebase anonymously.

The Firebase custom auth web quickstart demonstrates how to authenticate to Firebase with a user who has been authenticated from your own pre-existing authentication system. This is done by generating a token in a specific format, which is signed using the private key from a service account downloaded from the Google Developer Console. This token can then be passed to your client application which uses it to authenticate to Firebase.

Introduction

Getting Started

  • Set up your project on the Firebase Console.
  • Enable the authentication method you want to use in the Auth section > SIGN IN METHOD tab - you don't need to enable custom auth.
  • In the Google Developer Console, access the project you created in the Firebase Console.
  • For Custom Auth, also create a new Service Account in your project Developers Console, and download the JSON representation.
  • For Facebook, Twitter and GitHub you will need to create an application as a developer on their developer platform, whitelist https://<project_id>.firebaseapp.com/__/auth/handler for auth redirects and enable and setup the app's credentials in the Firebase Console > Auth > SIGN IN METHOD.
  • Edit the .html for the authentication method you want to try and copy the initialization snippet from the Firebase Console Overview > Add Firebase to your web app into the <head> section of .html.
  • Run firebase serve using the Firebase CLI tool to launch a local server and open the sample .html in a web browser.

Support

https://firebase.google.com/support/

License

© Google, 2016. Licensed under an Apache-2 license.