A Basic Comprehensive Application to Understand OAuth2.0 Authorization Code Grant Type.......
There are few steps in OAuth we have to follow .... Step 1 >> Authorization Code Link First user is given authorization code link like this. http://localhost:8081/auth/oauth/authorize? response_type=code&client_id= CLIENT_ID &redirect_uri= CALLBACK_URL &scope= write Here is an explanation of the link components: https://cloud.digitalocean.com/v1/oauth/authorize : the API authorization endpoint client_id= client_id : the application's client ID (how the API identifies the application) redirect_uri= CALLBACK_URL : where the service redirects the user-agent after an authorization code is granted response_type= code : specifies that your application is requesting an authorization code grant scope= write : specifies the level of access that the application is requesting. Step 2 >> User Authorizes Application When the user clicks the link, they must first log in to the service, to authenticate their identity (unless the