Skip to content

qetr1ck-op/Creating-Apps-With-Angular-Node-and-Token-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learn about Authentication, Authorization, and OAuth2 with Node Express and Angular through creating multiple types of Auth servers and clients. Learn how to allow users to authenticate with Facebook, Google, Twitter, and any other third-party Auth Provider, using OpenID and OAuth. Our main focus will be on using the latest JSON Web Token.

JWT

  • What is JSON Web Token?
  • When should you use JSON Web Tokens?
  • What is the JSON Web Token structure?
  • How do JSON Web Tokens work via Bearer shema?

Introduction to JSON Web Tokens on https://jwt.io/introduction/

Rump-up the client app

Register Front-End Controllers and Services

  • Validation using custom validation in $validators with <validate-equal> directive.
  • Error notification using ngMassages
  • Notification using ngToast

REST API with JWT

REST API with JWT pt.2

  • Using component life cycle $doCheck instead of $scope.$watch to observe changes in a service
  • Add view animation using ngAnimate
  • Add interceptor request Auhtorization header using Restangular's [addFullRequestInterceptor](https://github .com/mgonto/restangular#setfullrequestinterceptor)
  • Authorize resource
  • Verify token using jwt.verify()

Login flow

  • Verify user manually and with passportjs using local strategies

Google Auth provider

Angular Auth with Satelizer

  • Using satellizer for Facebook authentication and replace existing Google auth flow
  • Facebook auth flow using official docs
  • Use momentjs to create exp field for jwt token
  • Using qs for parsing query params

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published