Constructor OAuthUserConfiguration
OAuthUserConfiguration(Uri, string, Uri, CultureInfo?, TimeSpan, TimeSpan, TimeSpan, bool, UserInterfaceStyle, bool)
Initializes a new instance of the OAuthUserConfiguration class with the specified parameters.
Declaration
public OAuthUserConfiguration(Uri portalUrl, string clientId, Uri redirectUrl, CultureInfo? culture = null, TimeSpan refreshTokenExpirationInterval = default, TimeSpan refreshTokenExchangeInterval = default, TimeSpan federatedTokenExpirationInterval = default, bool showCancelButton = true, UserInterfaceStyle userInterfaceStyle = UserInterfaceStyle.Unspecified, bool preferPrivateWebBrowserSession = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | portalUrl | The URL of the portal to authenticate with. |
| string | clientId | The unique identifier for the application registered with the portal used for client/server OAuth authentication. |
| Uri | redirectUrl | The URI that the OAuth login page redirects to when authentication completes. |
| CultureInfo | culture | A CultureInfo object specifying the language of the OAuth login page.
If not specified or set to |
| TimeSpan | refreshTokenExpirationInterval | The requested expiration interval for refresh tokens generated by the OAuth request. Set this parameter to MaxValue to request the maximum supported refresh token duration (90 days). Note that the portal administrator can override this maximum duration. |
| TimeSpan | refreshTokenExchangeInterval | The interval at which the OAuth refresh token is exchanged (rotated) before expiration.
This setting reduces how frequently active users must sign in again due to expired tokens.
If not specified or set to Zero, the default exchange interval (24 hours) is used.
A negative value disables token exchange entirely, causing refresh tokens to expire after the
|
| TimeSpan | federatedTokenExpirationInterval | The requested expiration interval for federated tokens generated using OAuth credentials. |
| bool | showCancelButton | A value indicating whether to show the "Cancel" button on the OAuth login page. |
| UserInterfaceStyle | userInterfaceStyle | A value indicating the interface style of the OAuth login page (light or dark). |
| bool | preferPrivateWebBrowserSession | A value indicating whether the OAuth login should request a private browsing session from the browser. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 300.0 |
| .NET Windows | 200.5 - 300.0 |
| .NET Android | 200.5 - 300.0 |
| .NET iOS | 200.5 - 300.0 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |