Angular API Communication and Authentication

1 min. read

Course URL:
https://www.lynda.com/Angular-tutorials/Using-exercise-files/594458/641259-4.html?autoplay=true

https://en.wikipedia.org/wiki/Bcrypt

HTTP Verbs
GET - read data from your api
POST - create new data
PUT - update data
DELETE - delete data

https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
http://frontend.turing.io/lessons/module-4/oauth/index.html

https://aws.amazon.com/blogs/apn/how-to-integrate-rest-apis-with-single-page-apps-and-secure-them-using-auth0-part-1/

Auth0
https://auth0.com/docs/quickstart/spa/angular2/01-login
https://auth0.com/docs/overview

Use Passport - Most popular NodeJS authentication middleware

Strategy is where passport will save the user data.

Make sure to add localhost to CROS in Auth0
Make sure to add the callback in the allowed callback list in auth0

Use redis to save tokens

Setup rules to merge accounts with the same email address

Cross-platform desktop apps:
https://electron.atom.io/docs/

https://auth0.com/blog/angular-2-authentication/
https://www.udemy.com/angularjs-authentication-with-auth0/