Source AL, 644 lines
src/System Application/App/OAuth2/OAuth2.Codeunit.allines 11 to 26 of 644, Copyright (c) Microsoft Corporation. MIT
codeunit 501 OAuth2{ Access = Public; InherentEntitlements = X; InherentPermissions = X; var [NonDebuggable] OAuth2Impl: Codeunit OAuth2Impl; /// <summary> /// Gets the authorization token based on the authorization code via the OAuth2 v1.0 code grant flow. /// </summary> /// <param name="ClientId">The Application (client) ID that the "Azure portal – App registrations" experience assigned to your app.</param> /// <param name="Certificate">The Base64-encoded certificate for the Application (client) configured in the "Azure Portal - Certificates & Secrets".</param> /// <param name="OAuthAuthorityUrl">The identity authorization provider URL.</param>
All 644 lines
Public procedures 39 in 29
| RequestClientCredentialsAdminPermissions(ClientId: Text; OAuthAuthorityUrl: Text; RedirectURL: Text; var HasGrantConsentSucceeded: Boolean; var PermissionGrantError: Text): Boolean | 17-29 |
| GetDefaultRedirectURL(var RedirectUrl: Text) | 17-29 |
| GetLastErrorMessage(): Text | new in 19 |
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | new in 24 |
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: SecretText; CertificatePassword: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | new in 24 |
| AcquireTokenByAuthorizationCode(ClientId: Text; ClientSecret: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text]; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | new in 24 |
All 94 procedures in 17-29
Changes 18 in 28
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; CertificatePassword: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; ResourceURL: Text; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text]; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
| AcquireTokenByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; CertificatePassword: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text]; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
| AcquireTokensByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text]; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var IdToken: Text; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
| AcquireTokensByAuthorizationCodeWithCertificate(ClientId: Text; Certificate: Text; CertificatePassword: SecretText; OAuthAuthorityUrl: Text; RedirectURL: Text; Scopes: List of [Text]; PromptInteraction: Enum "Prompt Interaction"; var AccessToken: SecretText; var IdToken: Text; var AuthCodeErr: Text): Boolean | 24 to 27 |
| gone |
All 150 changes in 17-29