Constructor OAuthUserConfiguration
OAuthUserConfiguration(Uri, String, Uri, CultureInfo, TimeSpan, TimeSpan, TimeSpan, Boolean, UserInterfaceStyle, Boolean)
Initializes a new instance of the OAuth
Declaration
public OAuthUserConfiguration(Uri portalUrl, string clientId, Uri redirectUrl, CultureInfo culture = null, TimeSpan refreshTokenExpirationInterval = default(TimeSpan), TimeSpan refreshTokenExchangeInterval = default(TimeSpan), TimeSpan federatedTokenExpirationInterval = default(TimeSpan), bool showCancelButton = true, UserInterfaceStyle userInterfaceStyle = UserInterfaceStyle.Unspecified, bool preferPrivateWebBrowserSession = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
portalUrl | The URL of the portal to authenticate with. |
System. |
clientId | A unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication. |
System. |
redirectUrl | The URL that the OAuth login page redirects to when authentication completes. |
System. |
culture | The OAuth login page is displayed in the language specified by the given culture code. If not specified, System. |
System. |
refreshTokenExpirationInterval | The requested expiration interval for the refreshToken generated by the OAuth request.
Set this to System. |
System. |
refreshTokenExchangeInterval | The requested exchange interval 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 unspecified or set to 0, default exchange interval of 24 hours is used.
If the exchange interval is less than System. |
System. |
federatedTokenExpirationInterval | The requested expiration interval for federated tokens generated using the OAuth credential. |
System. |
showCancelButton | A value indicating whether to show "Cancel" button on the OAuth login page. |
User |
userInterfaceStyle | Constants indicating the interface style for the OAuth login page. |
System. |
preferPrivateWebBrowserSession | A value indicating whether the OAuth login session should ask the browser for a private authentication session. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.5 - 200.6 |
.NET | 200.5 - 200.6 |
.NET Windows | 200.5 - 200.6 |
.NET Android | 200.5 - 200.6 |
.NET iOS | 200.5 - 200.6 |
.NET Framework | 200.5 - 200.6 |
UWP | 200.5 - 200.6 |