OAuth is a commonly used standard by many application developers. It specifies a process for resource owners to authorize third parties access to their server resources without sharing their credentials.
Clients use the access token to grant access to the protected user data. The process that the client grant the access token is known as grant type.
1)Authorization code grant type
Clients use the access token to grant access to the protected user data. The process that the client grant the access token is known as grant type.
1)Authorization code grant type
![]() |
| Figure 1 |
Then the authorization server authenticates the resource owner.The access token is sent to client application as the response. The client app request for the access token, using the authorization code. The client app get receive the access token as the respones.
2) Implicit grant type
![]() |
| Figure 2 |
Client is not authenticated in implicit grant type, as in authorization code grant type authorization server authenticates the resource owner. By adding the access token, the resource owner redirects it to the client using the URI fragment. Access token get extracted and passed it back to the client.
3) Resource owner password credential grant type
![]() |
| Figure 3 |
4) Client credential grant type
![]() |
| Figure 4 |
You can see a sample project (GitHub) :- OAuth Authorization Framework




Comments
Post a Comment