How to secure Your App with Auth0
https://manage.auth0.com/dashboard/us/dev--15yis6i/ -- Google mailAuth0 provides authentication and authorization as a service.
Rapidly integrate authentication and authorizatin for web, mobile and legacy applications so you can focus on your core business.
How to Secure your App
1) Form based Login
2) JWT Token Based And Password less
3) Machine to Machine
Agenda
Authentication vs. authorization.
OAuth 2.0 and its flows.
Implementing authorization code grant flow with OpenID in a React app with popup and redirection UX.
Authentication vs. Authorization
Authentication means that we only want to identify the user who’s trying to log into an application. It’s a way of identifying the users to make sure they are who they are claiming to be.
simple example is username/password
Authentication --- who are you
Authorization --- Are you allowed
Authorization, on the other hand, is a way of “authorizing” the logged-in user to access the protected resources. The authorization process generally succeeds authentication.
An example would be an API key through which you can access the developer’s REST API. Or, simply something like a Google access token to access Google resources, such as Google Drive.
OAuth2 flow
Authorization Code Grant :
A code is issued and used to obtain the access_token. This code is released to a front-end application after the user logs in. The access_token instead, is issued server side, authenticating the client with its password and the obtained code.client Credential Grant :
the access_token is issued on the server, authenticating only the client, not the user.Password Grant:
the access_token is issued immediately with a single request containing all login information : username, user password, client id, and client secret.![]() |
oAuth Flow |
Authorization Grant
The Involved Actors
User :
CLient App
Authorization Server
Resource Server
The Flow
https://itnext.io/an-oauth-2-0-introduction-for-beginners-6e386b19f7a9
Comments
Post a Comment