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
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |