Source AL, 74 lines
src/System Application/App/Azure Function/AzureFunctionsOAuth2.Codeunit.allines 12 to 27 of 74, Copyright (c) Microsoft Corporation. MIT
codeunit 7802 "Azure Functions OAuth2" implements "Azure Functions Authentication"{ Access = Internal; InherentEntitlements = X; InherentPermissions = X; var [NonDebuggable] AuthenticationCodeGlobal, EndpointGlobal : Text; [NonDebuggable] ClientIdGlobal, OAuthAuthorityUrlGlobal, RedirectURLGlobal, ResourceURLGlobal : Text; ClientSecretGlobal: SecretText; AccessToken: SecretText; BearerLbl: Label 'Bearer %1', Comment = '%1 is the access token', Locked = true; FailedToGetTokenErr: Label 'Authorization failed to Azure function: %1', Locked = true; AzureFunctionCategoryLbl: Label 'Connect to Azure Functions', Locked = true;
All 74 lines
Public procedures 2 in 29
| Authenticate(var RequestMessage: HttpRequestMessage): Boolean | new in 21 |
| SetAuthParameters(Endpoint: Text; AuthenticationCode: Text; ClientId: Text; ClientSecret: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text) | new in 24 |
All 3 procedures in 21-29
Changes 2 in 24
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | | | | 2 | | | | | |
|---|
| SetAuthParameters(Endpoint: Text; AuthenticationCode: Text; ClientId: Text; ClientSecret: Text; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text) | 21 to 23 |
| gone |
| SetAuthParameters(Endpoint: Text; AuthenticationCode: Text; ClientId: Text; ClientSecret: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text) | new in 24 |
| added |
All 2 changes in 21-29