Skip to content

Project with signup login module specification

Alexander M edited this page Sep 3, 2018 · 9 revisions

Objectives

The purpose of this project type of the CLI is to "scaffold" a project which exposes a ready to use (that requires minimal settings changes) sign up/sign in authentication functionality.

User Stories

Developer

As a developer I want to have options to use both external providers (Google, Twitter, Facebook etc. ), and my own authentication logic. I expect the project be functional - which means sign up/login which stores data into "localStorage" for example, as well as easy guidance how I can plug in my own authentication service. I want to access the following user information when the user uses Open ID authentication:

  • User Name(s)
  • Email
  • Provider (Google, Facebook, Twitter)
  • User ID
  • Access Token
  • Image URL

End User

As an end user I want to be able to signup/login when I generate project with authentication enabled.

Documentation

Guidance how to complete external logging after I generate my project using the CLI Guidance how to plug in my own authentication logic/service

Research technical notes

Using OAuth 2.0 to Access Google APIs - https://developers.google.com/identity/protocols/OAuth2

Firebase - https://angular-templates.io/tutorials/about/firebase-authentication-with-angular Firebase is not suitable for production applications so we will not use it for our project.

angular-6-social-login - https://www.npmjs.com/package/angular-6-social-login