Method CreateAsync
CreateAsync(IapConfiguration, object?, CancellationToken)
Creates an IapCredential containing the necessary information to access the Identity-Aware Proxy (IAP) using OAuth and OpenID Connect.
Declaration
public static Task<IapCredential> CreateAsync(IapConfiguration configuration, object? state = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IapConfiguration | configuration | The configuration details of an application that is registered on the Identity-Aware Proxy (IAP) portal. |
| object | state | An optional state object passed to the logout callback's State parameter. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<IapCredential> | Returns an IapCredential. |
Remarks
This process initiates the IAP login by displaying the login page within a web session.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |