Class OAuthSettings
Used to be an abstract base class for OAuth provider settings ScriptableObjects. But now serves as a common holder for shared OAuth settings across different providers.
public sealed class OAuthSettings : ScriptableObject
- Inheritance
-
objectOAuthSettings
Properties
AppleKeyId
Apple Key ID for Apple OAuth.
public string AppleKeyId { get; }
Property Value
- string
ApplePrivateKeyPem
Apple Private Key in PEM format for Apple OAuth.
public string ApplePrivateKeyPem { get; }
Property Value
- string
AppleTeamId
Apple Team ID for Apple OAuth.
public string AppleTeamId { get; }
Property Value
- string
AuthTimeoutSeconds
public int AuthTimeoutSeconds { get; }
Property Value
- int
ClientId
public string ClientId { get; }
Property Value
- string
ClientSecretOrNull
public string ClientSecretOrNull { get; }
Property Value
- string
DropboxIsTeamApp
Whether this app is a Team App (Dropbox Business) or a User App (Personal Dropbox).
public bool DropboxIsTeamApp { get; }
Property Value
- bool
EnableDeviceFlowFallback
public bool EnableDeviceFlowFallback { get; }
Property Value
- bool
ForcePromptConsent
public bool ForcePromptConsent { get; }
Property Value
- bool
IncludeGrantedScopes
public bool IncludeGrantedScopes { get; }
Property Value
- bool
MicrosoftTenant
The tenant identifier for Microsoft OAuth. Use "common" for multi-tenant applications, or specify a particular tenant ID.
public string MicrosoftTenant { get; }
Property Value
- string
MinDevicePollIntervalSec
public int MinDevicePollIntervalSec { get; }
Property Value
- int
NetworkTimeoutSeconds
public int NetworkTimeoutSeconds { get; }
Property Value
- int
Provider
public OAuthProvider Provider { get; }
Property Value
RedditPermanent
Whether to request permanent tokens in Reddit OAuth.
public bool RedditPermanent { get; }
Property Value
- bool
RequestOfflineAccess
public bool RequestOfflineAccess { get; }
Property Value
- bool
SalesforceDomain
Salesforce domain URL for Salesforce OAuth.
public string SalesforceDomain { get; }
Property Value
- string
SalesforceRequestRefreshToken
Whether to request refresh tokens in Salesforce OAuth.
public bool SalesforceRequestRefreshToken { get; }
Property Value
- bool
ScopeString
public string ScopeString { get; }
Property Value
- string
SlackForcePromptConsent
Whether to force prompt consent in Slack OAuth.
public bool SlackForcePromptConsent { get; }
Property Value
- bool
SlackUserScope
Slack OAuth User Scope string.
public string SlackUserScope { get; }
Property Value
- string
Methods
CreateCustomSchemeReceiver(IAuthWaiter)
public SchemeAuthCodeReceiver CreateCustomSchemeReceiver(IAuthWaiter waiter = null)
Parameters
waiterIAuthWaiter
Returns
CreateFixedRedirectReceiver(IAuthWaiter)
public FixedRedirectAuthCodeReceiver CreateFixedRedirectReceiver(IAuthWaiter waiter)
Parameters
waiterIAuthWaiter
Returns
CreateLoopbackReceiver()
public LoopbackAuthCodeReceiver CreateLoopbackReceiver()
Returns
CreateReceiver(IAuthWaiter)
public IAuthCodeReceiver CreateReceiver(IAuthWaiter waiter = null)
Parameters
waiterIAuthWaiter
Returns
ResetScopesToDefault()
public void ResetScopesToDefault()
Validate(out string)
public bool Validate(out string error)
Parameters
errorstring
Returns
- bool