Table 1140 OAuth 2.0 Setup in 28

App
Base Application
Namespace
System.Security.Authentication

Fields, 25Keys, 1Procedures, 12Events, 5

Versions171819202122232425262728latest

Source29

Fields, 25

IdNameTypeObsolete
1CodeCode[20]-
2DescriptionText[250]-
3Service URLText[250]-
4Redirect URLText[250]-
5Client IDGuid-
6Client SecretGuid-
7Access TokenGuid-
8Refresh TokenGuid-
9Authorization URL PathText[250]-
10Access Token URL PathText[250]-
11Refresh Token URL PathText[250]-
12ScopeText[250]-
13Authorization Response TypeText[250]-
14StatusOption-
15Token DataScopeOption-
16Activity Log IDInteger-
17Daily LimitInteger-
18Daily CountInteger-
19Latest DatetimeDateTime-
20Access Token Due DateTimeDateTime-
21Feature GUIDGuid-
22User IDCode[50]-
50Code Challenge MethodEnum OAuth 2.0 Code Challenge-
51Code VerifierGuid-
52Use NonceBoolean-

Keys, 1

NameFieldsObsolete
Key1, clusteredCode-

Procedures, 12

NameParametersReturnsAccessObsolete
DeleteToken(Guid)internalPending 27.0
This method is being marked as internal. Call IsolatedStorage.Delete from your app.
HasToken(Guid)BooleaninternalPending 27.0
This method is being marked as internal. Call IsolatedStorage.Contains from your app.
GetTokenDataScope()DataScopepublic-
RequestAuthorizationCode()internalPending 27.0
This method is being marked as internal. Get the Rec."Client ID" from IsolatedStorage, call OAuth20Mgt.GetAuthorizationURLAsSecretText with it, unwrap the result and make a hyperlink.
RequestAccessToken(var Text, Text)BooleaninternalPending 27.0
This method is being marked as internal. Get the client credentials from IsolatedStorage using Rec."Client ID" and Rec."Client Secret", call OAuth20Mgt.RequestAccessToken or implement this yourself, then save the access token with IsolatedStorage.SetEncrypted or IsolatedStorage.Set.
RefreshAccessToken(var Text)BooleaninternalPending 27.0
This method is being marked as internal. Get the refresh token with IsolatedStorage.Get(Rec."Refresh Token"), then call OAuth20Mgt.RefreshAccessToken with it and save the access token with IsolatedStorage.SetEncrypted or IsolatedStorage.Set.
InvokeRequest(Text, var Text, var Text, Boolean)BooleaninternalPending 27.0
This method is being marked as internal. Implement your version of InvokeRequest by getting the Rec."Access Token" from IsolatedStorage, then calling public method OAuth20Mgt.InvokeRequest with it. If you set parameter RetryOnCredentialsFailure to true, you must also subscribe to event OnBeforeRefreshAccessToken raised by OAuth20Setup table and process it with your implementation of RefreshAccessToken and subscribe to OnBeforeInvokeRequest event raised by OAuth20Setup table and process it with your implementation of InvokeRequest (this implementation)
FindSetOAuth20SetupByFeature(Guid)Booleanpublic-
FindFirstOAuth20SetupByFeatureAndCurrUser(Guid)Booleanpublic-
FindFirstOAuth20SetupByFeatureAndUser(Guid, Code[50])Booleanpublic-
SetToken(var Guid, SecretText)internalPending 27.0
This method is being marked as internal. Call IsolatedStorage.SetEncrypted or IsolatedStorage.Set from your app.
GetTokenAsSecretText(Guid)SecretTextinternalPending 27.0
This method is being marked as internal. Call IsolatedStorage.Get from your app.

Events, 5

KindNameParametersObsolete
Integration eventOnAfterRequestAccessToken(Record OAuth 2.0 Setup, Boolean, var Text)-
Integration eventOnBeforeRequestAuthoizationCode(Record OAuth 2.0 Setup, var Boolean)-
Integration eventOnBeforeRefreshAccessToken(var Record OAuth 2.0 Setup, var Boolean, var Text, var Boolean)-
Integration eventOnBeforeRequestAccessToken(var Record OAuth 2.0 Setup, Text, var Boolean, var Text, var Boolean)-
Integration eventOnBeforeInvokeRequest(var Record OAuth 2.0 Setup, Text, var Text, var Text, var Boolean, var Boolean, Boolean)-