Class CloudStorageConnectorUsingOAuth2
- Namespace
- ArcanaDevelopment.adTempus.Client
- Assembly
- ArcanaDevelopment.adTempus.Client.dll
public abstract class CloudStorageConnectorUsingOAuth2 : CloudStorageConnector
- Inheritance
-
objectCloudStorageConnectorUsingOAuth2
- Derived
Properties
OAuth2TokenSet
public bool OAuth2TokenSet { get; }
Property Value
- bool
Tenant
public string Tenant { get; set; }
Property Value
- string
UserId
public string UserId { get; set; }
Property Value
- string
Methods
BeginOAuth2Authorization(string)
Begins OAuth2 authorization using the provider's current settings.
public OAuth2AuthorizationRequest BeginOAuth2Authorization(string redirectUri)
Parameters
| Name | Type | Description |
|---|---|---|
redirectUri |
string | The loopback redirect URI the client is listening on for the authorization code. |
Returns
- OAuth2AuthorizationRequest
The authorization URL to open in the browser, and the values needed to complete the authorization.
Remarks
Requires server version 6 or later. After the user authorizes access, call CompleteOAuth2Authorization(OAuth2AuthorizationRequest, string).
CompleteOAuth2Authorization(OAuth2AuthorizationRequest, string)
Completes OAuth2 authorization and stores the resulting token in the provider.
public void CompleteOAuth2Authorization(OAuth2AuthorizationRequest request, string authorizationCode)
Parameters
| Name | Type | Description |
|---|---|---|
request |
OAuth2AuthorizationRequest | The request returned by BeginOAuth2Authorization(string). |
authorizationCode |
string | The authorization code returned to the redirect URI. |
Remarks
The server exchanges the code for a token, so the app registration's client secret is never sent to the client. The token is saved when the provider is saved.
SetOAuth2Token(string)
public void SetOAuth2Token(string value)
Parameters
| Name | Type | Description |
|---|---|---|
value |
string |
Inherited Members
- ProxySettings
- EncryptionAlgorithm
- ClientCertificateStore
- ClientCertificateSubject
- ClientCertificateSet
- SetClientCertificate(string)
- RequiresRegion
- RequiresEndpoint
- PreserveTimestampOnDownload
- ClassKeyName
- IsDependent
- ClassID
- WriteToConfigurationReport(IADTObjectConfigurationReportWriter)
- ServiceType
- ServiceName
- Enabled
- GetObjectDescription()
- Test(string)
- IsCloudService
- SupportsBackup
- ApiKey
- SetApiSecret(string)
- ApiSecretSet
- Refresh()
- Revert()
- Save()
- Save(out MessageCollection)
- SaveWithAuditOrSnapshot(ChangeLogParameters)
- SaveWithAuditOrSnapshot(ChangeLogParameters, out MessageCollection)
- Delete()
- DeleteWithAuditOrSnapshot(ChangeLogParameters)
- GetSecurityDescriptor()
- ReplaceObjectReferences(string[], bool, int, IEnumerable<OID>, ADTObject, bool, ChangeLogParameters)
- GetObjectReferences(string[], bool, int, OID[])
- EffectivePermissions
- OnNewEntity()
- OnEntityReloaded()
- LastModified
- CreationTimestamp
- FromController
- CustomProperties
- Description
- DescriptionTextType
- OID
- BindingDescription
- ToString()
- ParentObject
- CanPerform(SecurityPermission)
- Duplicate()
- CheckForStub(string, string)
- DataContext
- AccessMask
- InitializeFromEntity()
- Validate(MessageCollection)
- SupportedSecurityActions
- SupportedSecurityInheritanceOptions
- AddStandardSecurityActions(Dictionary<int, string>, string)
- AddSupportedSecurityAction(Dictionary<int, string>, SecurityPermission, string)
- GetTopLevelOwner()
- GetConfigurationReport()
- GetConfigurationReport(bool)
- IsReadOnly
- SerializeCustomProperties()
- IsDirty
- IsNew
- IsStub
- ClassName
- GetDescriptionWithClassName()
- GetDescription()
- HideFieldValueInTextOutput(string)
- FindOwningObject()
- BeginEdit()
- BeginEdit(UndoLevelAction)
- CommitEdit(Guid)
- CommitEdit()
- UndoEdit()
- UndoEdit(Guid)