Codeunit 7807 Azure Functions OAuth2 Cert

System Application, System.Azure.Functions

Source AL, 74 lines

src/System Application/App/Azure Function/AzureFunctionsOAuth2Cert.Codeunit.allines 12 to 27 of 74, Copyright (c) Microsoft Corporation. MIT

codeunit 7807 "Azure Functions OAuth2 Cert" implements "Azure Functions Authentication"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        [NonDebuggable]        AuthenticationCodeGlobal, EndpointGlobal : Text;        [NonDebuggable]        ClientIdGlobal, OAuthAuthorityUrlGlobal, RedirectURLGlobal : Text;        CertGlobal: SecretText;        AccessToken: SecretText;        ScopesGlobal: List of [Text];        BearerLbl: Label 'Bearer %1', Locked = true;        FailedToGetTokenErr: Label 'Authorization failed to Azure function: %1', Locked = true;

All 74 lines

Public procedures 2 in 29

Authenticate(var RequestMessage: HttpRequestMessage): Booleannew in 23
SetAuthParameters(Endpoint: Text; AuthenticationCode: Text; ClientId: Text; Cert: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text])new in 23