Class AuthWebUtility
Auth Utility methods for web development.
Inherited Members
Namespace: Google.Apis.Auth.OAuth2.Web
Assembly: Google.Apis.Auth.dll
Syntax
public class AuthWebUtility
Methods
ExtracRedirectFromState(IDataStore, string, string)
Extracts the redirect URI from the state OAuth2 parameter.
Declaration
public static Task<string> ExtracRedirectFromState(IDataStore dataStore, string userId, string state)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataStore | dataStore | The data store which contains the original state parameter. |
| string | userId | User identifier. |
| string | state | The authorization state parameter which we got back from the authorization server. |
Returns
| Type | Description |
|---|---|
| Task<string> | Redirect URI to the address which initializes the authorization code flow. |
Remarks
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.