Codeunit "Graph Authorization"
Provides functionality for creating means for authorizing HTTP requests made to Microsoft Graph API.
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
CreateAuthorizationWithClientCredentials
Creates an authorization mechanism with authentication code.
procedure CreateAuthorizationWithClientCredentials(AadTenantId: Text, ClientId: Text, ClientSecret: SecretText, Scope: Text): Interface "Graph Authorization"
Parameters
| Name | Type | Description |
|---|---|---|
| AadTenantId | Text |
Azure Active Directory tenant ID |
| 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 - Certificates & Secrets". |
| Scope | Text |
A scope that you want the user to consent to. |
Returns
| Type | Description |
|---|---|
| Interface System.Integration.Graph.Authorization."Graph Authorization" |
Codeunit instance implementing authorization interface |
CreateAuthorizationWithClientCredentials
Creates an authorization mechanism with authentication code.
procedure CreateAuthorizationWithClientCredentials(AadTenantId: Text, ClientId: Text, ClientSecret: SecretText, Scopes: List of [Text]): Interface "Graph Authorization"
Parameters
| Name | Type | Description |
|---|---|---|
| AadTenantId | Text |
Azure Active Directory tenant ID |
| 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 - Certificates & Secrets". |
| Scopes | List of [Text] |
A list of scopes that you want the user to consent to. |
Returns
| Type | Description |
|---|---|
| Interface System.Integration.Graph.Authorization."Graph Authorization" |
Codeunit instance implementing authorization interface |
CreateAuthorizationWithClientCredentials
Creates an authorization mechanism with authentication code.
procedure CreateAuthorizationWithClientCredentials(AadTenantId: Text, ClientId: Text, Certificate: SecretText, CertificatePassword: SecretText, Scope: Text): Interface "Graph Authorization"
Parameters
| Name | Type | Description |
|---|---|---|
| AadTenantId | Text |
Azure Active Directory tenant ID |
| ClientId | Text |
The Application (client) ID that the Azure portal - App registrations experience assigned to your app. |
| Certificate | SecretText |
The Base64-encoded certificate for the Application (client) configured in the Azure Portal - Certificates & Secrets. |
| CertificatePassword | SecretText |
Password for the certificate. |
| Scope | Text |
A scope that you want the user to consent to. |
Returns
| Type | Description |
|---|---|
| Interface System.Integration.Graph.Authorization."Graph Authorization" |
Codeunit instance implementing authorization interface |
CreateAuthorizationWithClientCredentials
Creates an authorization mechanism with authentication code.
procedure CreateAuthorizationWithClientCredentials(AadTenantId: Text, ClientId: Text, Certificate: SecretText, CertificatePassword: SecretText, Scopes: List of [Text]): Interface "Graph Authorization"
Parameters
| Name | Type | Description |
|---|---|---|
| AadTenantId | Text |
Azure Active Directory tenant ID |
| ClientId | Text |
The Application (client) ID that the Azure portal - App registrations experience assigned to your app. |
| Certificate | SecretText |
The Base64-encoded certificate for the Application (client) configured in the Azure Portal - Certificates & Secrets. |
| CertificatePassword | SecretText |
Password for the certificate. |
| Scopes | List of [Text] |
A list of scopes that you want the user to consent to. |
Returns
| Type | Description |
|---|---|
| Interface System.Integration.Graph.Authorization."Graph Authorization" |
Codeunit instance implementing authorization interface |