Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Firebase Authentication - The secure way

Firebase Authentication - The secure way

Implementing firebase authentication in your server isn't such a bad idea; actually it may be a preferred approach if you're building a security-sensitive system. An overview of this approach is provided in this presentation.

Wisdom Arerosuoghene

November 14, 2017
Tweet

More Decks by Wisdom Arerosuoghene

Other Decks in Programming

Transcript

  1. I have a thing for Firebase (Authentication) ➔ C# library

    for Firebase Authentication (Open Source Project) ➔ Node JS SDK for Firebase Authentication (Open Source Project) ➔ Intro to Firebase for Web (Talk and Open Source Project) ➔ Firebase for Beginners (CodeLab) ➔ Firebase Authentication for Java SDK (in progress) Wisdom Arerosuoghene Medium, Facebook, Twitter, Github @itswisdomagain
  2. Authentication should be easy And it can be! • Email-password

    authentication • Federated identities authentication (Facebook, Google, Github, Twitter) • Phone number authentication • Anyone missing? Add it. No, really. Add it.
  3. For the sake of clarity... Authentication is used to affirmatively

    verify the identity of a user Authorization is used to verify a user’s right to access and/or modify a resource
  4. Play safe! Client side or server side? • Use SSL

    (Https) • Exposes apiKey • Exposes config • Use SSL (Https) • apiKey hidden • Config info protected
  5. If you expose your api key, it becomes easier for

    anyone to create user accounts indiscriminately. You can no longer rely on Firebase token verification for complete user authentication and authorization.
  6. All you need is the ability to call APIs. Fun

    fact The Firebase client SDKs call the Firebase REST API under the hood
  7. Now you can rest easy - HTTPS encrypts your communication

    - Server-side authentication keeps your attackers moping - Change authentication stack anytime without having to ask your users to upgrade their app Look at them Come and hijack my authentication again na.