Table of Contents

Codeunit "Azure Functions Authentication"

ID 7800
Namespace: System.Azure.Functions

Provides functionality for setting authentication parameters to Azure function.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

CreateOAuth2

Creates OAuth2 authentication instance of Azure function interface.

[NonDebuggable]
procedure CreateOAuth2(Endpoint: Text, AuthenticationCode: Text, ClientId: Text, ClientSecret: SecretText, OAuthAuthorityUrl: Text, RedirectURL: Text, ResourceURL: Text): Interface "Azure Functions Authentication"

Parameters

Name Type Description
Endpoint Text

Azure function endpoint

AuthenticationCode Text

Azure function authentication code, empty if anonymous.

ClientId Text

The Application (client) ID that the Azure portal – App registrations experience assigned to your app.

ClientSecret SecretText

The Application (client) secret configured in the Azure Portal.

OAuthAuthorityUrl Text

The identity authorization provider URL.

RedirectURL Text

The redirectURL of your app, for azure function this could be empty

ResourceURL Text

The Application ID URI

Returns

Type Description
System.Azure.Functions."Azure Functions Authentication"

Instance of Azure function response object.

CreateCodeAuth

Creates code authentication instance of Azure function interface.

[NonDebuggable]
procedure CreateCodeAuth(Endpoint: Text, AuthenticationCode: Text): Interface "Azure Functions Authentication"

Parameters

Name Type Description
Endpoint Text

Azure function endpoint

AuthenticationCode Text

Azure function authentication code, empty if anonymous.

Returns

Type Description
System.Azure.Functions."Azure Functions Authentication"

Instance of Azure function response object.

CreateOAuth2WithCert

Creates an instance of OAuth2 authentication with certificate of Azure function interface.

[NonDebuggable]
procedure CreateOAuth2WithCert(Endpoint: Text, AuthenticationCode: Text, ClientId: Text, Cert: SecretText, OAuthAuthorityUrl: Text, RedirectURL: Text, Scope: Text): Interface "Azure Functions Authentication"

Parameters

Name Type Description
Endpoint Text

Azure function endpoint

AuthenticationCode Text

Azure function authentication code, empty if anonymous.

ClientId Text

The Application (client) ID that the Azure portal – App registrations experience assigned to your app.

Cert SecretText

The Application (client) certificate configured in the Azure Portal.

OAuthAuthorityUrl Text

The identity authorization provider URL.

RedirectURL Text

The redirectURL of your app, for azure function this could be empty

Scope Text

The scope for the token, example: "api://(app id)/.default"

Returns

Type Description
System.Azure.Functions."Azure Functions Authentication"

Instance of Azure function response object.

See also