Google API Client Library for .NET  1.10.0
Static Public Member Functions | List of all members
Google.Apis.Auth.OAuth2.Web.AuthWebUtility Class Reference

Auth Utility methods for web development. More...

Static Public Member Functions

static async Task< string > ExtracRedirectFromState (IDataStore dataStore, string userId, string state)
 Extracts the redirect URI from the state OAuth2 parameter. More...
 

Detailed Description

Auth Utility methods for web development.

Member Function Documentation

static async Task<string> Google.Apis.Auth.OAuth2.Web.AuthWebUtility.ExtracRedirectFromState ( IDataStore  dataStore,
string  userId,
string  state 
)
inlinestatic

Extracts the redirect URI from the state OAuth2 parameter.

If the data store is not null, this method verifies that the state parameter which was returned from the authorization server is the same as the one we set before redirecting to the authorization server.

Parameters
dataStoreThe data store which contains the original state parameter.
userIdUser identifier.
stateThe authorization state parameter which we got back from the authorization server.
Returns
Redirect URI to the address which initializes the authorization code flow.

The documentation for this class was generated from the following file: