1.73.0 (latest) 1.69.0 1.68.0 1.60.0 1.59.0 1.55.0 1.50.0

    public class AuthWebUtility

Auth Utility methods for web development.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AuthWebUtility

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Apis.Auth.OAuth2.Web](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Web.md.txt)

## Assembly

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` | `IDataStore` The data store which contains the original state parameter. |
| `userId` | `string` User identifier. |
| `state` | `string` The 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. |

**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.

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities.md.txt#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)