The current HTTP session.
OAuth state obtained from the '_state' query string parameter of the request URL.
the authorization code obtained from the service. It will be in the 'code' parameter in the query string of the request being processed.
The new session.
OAuthException if any of the latter two arguments is invalid or authentication fails otherwise.
User login helper method, complementary to userAuthUri.
Use this method to start a session with user impersonation. The authorizationCode MUST be obtained by redirection of the user agent to an URI obtained through userAuthUri, otherwise there would not be a valid state.