AUTHENTICATION
WITH FIREBASE
S H A B A B K A R I M
A N D R O I D D E V E L O P E R
B R A C U N I V E R S I T Y
OBJECTIVE
Beginners:
• Project creation with Firebase
• Working with Firebase Auth.
• Some OOP concepts.
• Handling callbacks.
Advanced Devs:
• Working with Firebase Auth
• Powering up your app analytics.
SO WHAT IS
FIREBASE
AGAIN?
WHAT IS FIREBASE
• It is a Backend-as-a-Service or BaaS
• Everything from analytics, database to
crash reporting and testing in one
single platform.
• With the introduction of cloud
functions we can use it is a hosting
service too.
WHY USE FIREBASE
WHEN I HAVE A
PERFECTLY FINE
BACKEND AND
PROVIDER API
IMPLEMENTED?
CODE COMPARISON
WITHOUT FIREBASE WITH FIREBASE
ANALYTICS
• No more multiple dashboards for
multiple providers.
• User analysis and monitoring in one
place.
• Better insights.
ITS FREE, KINDA
• Good place to start if you don’t know how successful your app is going to be
• Has a pretty big limit for an initial app
• If your app reaches that limit that limit then you will be raining dollars with Admob.
$25/month won’t hurt.
CAN WE GET TO
THE CODING
PART NOW?
NOPE
FIREBASE ARCHITECTURE
• Firebase follows the same architecture for all authentication providers.
• If we understand the architecture then we can code for any authentication provider.
FIREBASE ARCHITECTURE
• First connect to the provider API
• On successfully logging to the
provider get the user credential token
• Pass the token to firebase
• Firebase registers the user and calls a
success callback.
LETS GET
CODING!!
CRITICAL CASES
• What if my Facebook account uses xyz@gmail.com and also my Gmail account uses
xyz@gmail.com ?
• Anonymous email password is not encrypted.
QUESTIONS??
THANK YOU!!
C O D E L I N K :
H T T P S : / / G I T H U B . C O M / S H A B A B 4 7 7 / G D G F I R E B A S E A U
T H

Firebase Authentication with Android

  • 1.
    AUTHENTICATION WITH FIREBASE S HA B A B K A R I M A N D R O I D D E V E L O P E R B R A C U N I V E R S I T Y
  • 2.
    OBJECTIVE Beginners: • Project creationwith Firebase • Working with Firebase Auth. • Some OOP concepts. • Handling callbacks. Advanced Devs: • Working with Firebase Auth • Powering up your app analytics.
  • 3.
  • 4.
    WHAT IS FIREBASE •It is a Backend-as-a-Service or BaaS • Everything from analytics, database to crash reporting and testing in one single platform. • With the introduction of cloud functions we can use it is a hosting service too.
  • 5.
    WHY USE FIREBASE WHENI HAVE A PERFECTLY FINE BACKEND AND PROVIDER API IMPLEMENTED?
  • 6.
  • 7.
    ANALYTICS • No moremultiple dashboards for multiple providers. • User analysis and monitoring in one place. • Better insights.
  • 8.
    ITS FREE, KINDA •Good place to start if you don’t know how successful your app is going to be • Has a pretty big limit for an initial app • If your app reaches that limit that limit then you will be raining dollars with Admob. $25/month won’t hurt.
  • 9.
    CAN WE GETTO THE CODING PART NOW?
  • 10.
  • 11.
    FIREBASE ARCHITECTURE • Firebasefollows the same architecture for all authentication providers. • If we understand the architecture then we can code for any authentication provider.
  • 12.
    FIREBASE ARCHITECTURE • Firstconnect to the provider API • On successfully logging to the provider get the user credential token • Pass the token to firebase • Firebase registers the user and calls a success callback.
  • 13.
  • 14.
    CRITICAL CASES • Whatif my Facebook account uses xyz@gmail.com and also my Gmail account uses xyz@gmail.com ? • Anonymous email password is not encrypted.
  • 15.
  • 16.
    THANK YOU!! C OD E L I N K : H T T P S : / / G I T H U B . C O M / S H A B A B 4 7 7 / G D G F I R E B A S E A U T H