Table 1140 OAuth 2.0 Setup

Base Application, System.Security.Authentication

8 obsolete

Procedures 8

internal DeleteToken(TokenKey: Guid)17-29changed in 27
Pending, tag 27.0, obsolete since 27.0: This method is being marked as internal. Call IsolatedStorage.Delete from your app.
internal HasToken(TokenKey: Guid): Boolean17-29changed in 27
Pending, tag 27.0, obsolete since 27.0: This method is being marked as internal. Call IsolatedStorage.Contains from your app.
internal RequestAuthorizationCode()17-29changed in 27
Pending, tag 27.0, obsolete since 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.
internal RequestAccessToken(var MessageText: Text; AuthorizationCode: Text): Boolean17-29changed in 27
Pending, tag 27.0, obsolete since 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.
internal RefreshAccessToken(var MessageText: Text): Boolean17-29changed in 27
Pending, tag 27.0, obsolete since 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.
internal InvokeRequest(RequestJSON: Text; var ResponseJSON: Text; var HttpError: Text; RetryOnCredentialsFailure: Boolean): Boolean17-29changed in 27
Pending, tag 27.0, obsolete since 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)
internal SetToken(var TokenKey: Guid; TokenValue: SecretText)new in 24changed in 27
Pending, tag 27.0, obsolete since 27.0: This method is being marked as internal. Call IsolatedStorage.SetEncrypted or IsolatedStorage.Set from your app.
internal GetTokenAsSecretText(TokenKey: Guid): SecretTextnew in 24changed in 27
Pending, tag 27.0, obsolete since 27.0: This method is being marked as internal. Call IsolatedStorage.Get from your app.