Skip to content

ArcGISOAuthUserConfiguration

Namespace: GameEngine.Authentication
Class: GameEngine/Authentication/ArcGISOAuthUserConfiguration
Since: 1.1.0
Implements: ArcGISJSONSerializable<ArcGISOAuthUserConfiguration>

Summary

The OAuth user configuration information used by an ArcGISOAuthUserCredential.

Constructors

ArcGISOAuthUserConfiguration(string, string, string, string, int, int, int, bool, ArcGISUserInterfaceStyle, bool)

Creates an OAuth configuration with the specified parameters.

Since 1.1.0

Arguments
NameTypeSummary
portalURLstring

The URL of the portal to authenticate with.

clientIdstring

A unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication.

redirectURLstring

The URL that the OAuth login page redirects to when authentication completes.

culturestring

The OAuth login page is displayed in the language specified by the given culture code.

refreshTokenExpirationIntervalint

The requested expiration interval (in minutes) for the refresh token. The max interval can be overridden by the portal administrator.

  • The value -1 returns the maximum refresh token expiration interval supported by the portal, which is usually set to ninety days. The portal administrator has the ability to decrease this maximum value.
  • The value 0 returns the default refresh token expiration interval configured on the portal, typically two weeks. This default value may be affected if the portal administrator sets the maximum refresh token value (ninety days) to less than two weeks.
refreshTokenExchangeIntervalint

The requested exchange interval (in minutes) for the OAuth refresh token. Use this to exchange a refresh token before it expires. This will limit the number of times a user will have to login because of expiring tokens.

federatedTokenExpirationIntervalint

The requested expiration interval (in minutes) for federated tokens generated using the OAuth credential.

showCancelButtonbool

A Boolean value indicating whether to show "Cancel" button on the OAuth login page.

userInterfaceStyleArcGISUserInterfaceStyle

Constants indicating the interface style for the OAuth login page.

preferPrivateWebBrowserSessionbool

A Boolean value indicating whether the OAuth login session should ask the browser for a private authentication session.

Properties

PropertyTypeNullableReadonlySummary
ClientIdstringNoYes

A unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication.

CulturestringNoYes

The OAuth login page is displayed in the language specified by the given culture code.

FederatedTokenExpirationIntervalintNoYes

The requested expiration interval (in minutes) for federated tokens generated using the OAuth credential.

PortalURLstringNoYes

The URL of the portal to authenticate with.

PreferPrivateWebBrowserSessionboolNoYes

A Boolean value indicating whether the OAuth login session should ask the browser for a private authentication session.

RedirectURLstringNoYes

The URL that the OAuth login page will redirect to when authentication completes.

RefreshTokenExchangeIntervalintNoYes

The requested exchange interval (in minutes) for the OAuth refresh token. Use this to exchange a refresh token before it expires. This will limit the number of times a user will have to login because of expiring tokens.

RefreshTokenExpirationIntervalintNoYes

The requested expiration interval (in minutes) for the refresh token. The maximum interval can be overridden by the portal administrator.

ShowCancelButtonboolNoYes

A Boolean value indicating whether to show the "Cancel" button on the OAuth login page.

UserInterfaceStyleArcGISUserInterfaceStyleNoYes

Constants indicating the interface style for the OAuth login page.

ClientId

string ClientId

A unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication.

Culture

string Culture

The OAuth login page is displayed in the language specified by the given culture code.

If not explicitly set, the culture used by the device/machine is used. If the culture is not supported by the portal then OAuth login page will be displayed in the language corresponding to culture specified in the portal/organization settings. The format for culture code is based on a language code and a country code separated by a dash. Example: "en-US".

FederatedTokenExpirationInterval

int FederatedTokenExpirationInterval

The requested expiration interval (in minutes) for federated tokens generated using the OAuth credential.

PortalURL

string PortalURL

The URL of the portal to authenticate with.

PreferPrivateWebBrowserSession

bool PreferPrivateWebBrowserSession

A Boolean value indicating whether the OAuth login session should ask the browser for a private authentication session.

RedirectURL

string RedirectURL

The URL that the OAuth login page will redirect to when authentication completes.

RefreshTokenExchangeInterval

int RefreshTokenExchangeInterval

The requested exchange interval (in minutes) for the OAuth refresh token. Use this to exchange a refresh token before it expires. This will limit the number of times a user will have to login because of expiring tokens.

If the exchange interval is set to 0 or less than 0, then the refresh token will never be exchanged and will eventually expire, causing the user to have to log in again.

To have any affect, this should be set to a value less than the ArcGISOAuthUserConfiguration.RefreshTokenExpirationInterval. Setting it to a value greater than the ArcGISOAuthUserConfiguration.RefreshTokenExpirationInterval will have the same effect as setting this to 0.

It is recommended to keep this interval as low as possible because long lived refresh tokens may increase the security risk.

RefreshTokenExpirationInterval

int RefreshTokenExpirationInterval

The requested expiration interval (in minutes) for the refresh token. The maximum interval can be overridden by the portal administrator.

  • The value -1 returns the maximum refresh token expiration interval supported by the portal, which is usually set to ninety days. The portal administrator has the ability to decrease this maximum value.
  • The value 0 returns the default refresh token expiration interval configured on the portal, typically two weeks. This default value may be affected if the portal administrator sets the maximum refresh token value (ninety days) to less than two weeks.

ShowCancelButton

bool ShowCancelButton

A Boolean value indicating whether to show the "Cancel" button on the OAuth login page.

UserInterfaceStyle

ArcGISUserInterfaceStyle UserInterfaceStyle

Constants indicating the interface style for the OAuth login page.

The default is ArcGISUserInterfaceStyle.Unspecified.

Methods

SignatureReturn TypeSummary

CanBeUsedForURL(string)

bool

Checks if this configuration can be used for the given URL.

CanBeUsedForURL

bool CanBeUsedForURL(string URL)

Checks if this configuration can be used for the given URL.

Since 1.1.0

Arguments
NameTypeSummary
URLstring

The URL to check.

Returns bool

True if this configuration can be used, otherwise false.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.