The implementation of the handle authentication redirect.

Implementing the process of obtaining authorization code required to obtain the access token.