Show / Hide Table of Contents

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
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.