Compare the clientβs action in both cases, bearing in mind that the client is a piece of software that you have to write yourself.
In the case of an Authorization code grant client, these steps are defined in the specification:
- The client requests an access token from the token of the endpoint authorization server, including the authorization code obtained in the previous step. when making a request, the client authenticates to the authorization server. the client includes a redirect URI used to obtain the authorization code for verification.
- The authorization server authenticates the client, checks the authorization code, and ensures that the received redirect URI matches the URI used to redirect the client in step (C). If it is valid, the authorization server responds with a reverse access token and, optionally, an update token.
In the case of Implicit Grant it should do:
Now the answer is more or less trivial: the amount of code in the first approach is unknown, but can be significant against the almost negligible for the second approach.
source share