OAuthUserConfiguration

constructor(portalUrl: String, clientId: String, redirectUrl: String, culture: Locale = Locale.getDefault(), refreshTokenExpirationInterval: RefreshTokenExpirationInterval = RefreshTokenExpirationInterval.Default, refreshTokenExchangeInterval: RefreshTokenExchangeInterval = RefreshTokenExchangeInterval.Never, federatedTokenExpirationInterval: Int? = null, showCancelButton: Boolean = true, userInterfaceStyle: OAuthUserConfiguration.UserInterfaceStyle = UserInterfaceStyle.Unspecified, preferPrivateWebBrowserSession: Boolean = false)

Creates an OAuth configuration with the specified parameters.

Since

200.1.0

Parameters

portalUrl

the URL of the portal to authenticate with

clientId

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

redirectUrl

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

culture

the OAuth login page is displayed in the language specified by the given locale, set by the device by default

refreshTokenExpirationInterval

the requested expiration interval for the OAuth refresh token

refreshTokenExchangeInterval

the requested exchange interval for the OAuth refresh token

federatedTokenExpirationInterval

the requested expiration interval (in minutes) for federated tokens generated using the OAuth credential. Setting this to null means that the default interval will be used

showCancelButton

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

userInterfaceStyle

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

preferPrivateWebBrowserSession

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

See also