Show / Hide Table of Contents

Method CreateAsync

CreateAsync(string, CancellationToken)

Creates an Identity-Aware Proxy (IAP) configuration from a JSON file on disk.

Declaration
public static Task<IapConfiguration> CreateAsync(string path, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string path

The path to the IAP configuration JSON file on disk.

CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task<IapConfiguration>

Returns an IapConfiguration.

Remarks

The format of the JSON file for Microsoft Entra Application Proxy should be as follows:

{
  "authorize_url" : "https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/authorize",
  "token_url" : "https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token",
  "logout_url" : "https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/logout",
  "client_id" : "<client_id>",
  "redirect_url" : "<redirect_url>",
  "scope" : [
    "<client_id>/.default",
    "offline_access",
    "openid",
    "profile"
  ],
  "hosts_behind_proxy" : ["*.domain.com"],
  "authorization_prompt_type" : "<empty string, none, login, consent, or select_account>"
}

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.