public class AuthWebUtilityAuth Utility methods for web development.
Namespace
GoogleApisAuthOAuth2WebAssembly
Google.Apis.Auth.dll
Methods
ExtracRedirectFromState(IDataStore, string, string)
public static Task<string> ExtracRedirectFromState(IDataStore dataStore, string userId, string state)Extracts the redirect URI from the state OAuth2 parameter.
| Parameters | |
|---|---|
| Name | Description |
dataStore |
IDataStoreThe data store which contains the original state parameter. |
userId |
stringUser identifier. |
state |
stringThe authorization state parameter which we got back from the authorization server. |
| Returns | |
|---|---|
| Type | Description |
Taskstring |
Redirect URI to the address which initializes the authorization code flow. |
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.