Exchanges and validates the authorization code for an access token after being redirect by the external provider. A success authentication will redirect the user back to the default redirect url provided in the /login route.
In case of error it will include the query string error=unexpected_error
when redirecting.
The location header to redirect in case of failure or success. In case of error it will contain the error=<message>
query string
The error description in case of failure to authenticate
The state value (Oauth2)
The authorization code (Oauth2)
Redirect with Success or Error