Control add-in Microsoft.Dynamics.Nav.Client.OAuthIntegration
src/System Application/App/ControlAddIns/src/MicrosoftDynamicsNavClientOAuthIntegration.ControlAddin.al56 lines, Copyright (c) Microsoft Corporation. MIT
#if not CLEAN24// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------#pragma warning disable AA0247controladdin "Microsoft.Dynamics.Nav.Client.OAuthIntegration"{ ObsoleteState = Pending; ObsoleteTag = '24.0'; ObsoleteReason = 'Replaced with OAuthIntegration addin.'; RequestedHeight = 30; RequestedWidth = 200; MinimumHeight = 20; MinimumWidth = 200; VerticalStretch = true; VerticalShrink = true; HorizontalStretch = true; HorizontalShrink = true; Scripts = 'Resources\OAuthIntegration\js\OAuthIntegration.js'; StyleSheets = 'Resources\OAuthIntegration\stylesheets\OAuthIntegration.css'; StartupScript = 'Resources\OAuthIntegration\js\Startup.js'; /// <summary> /// Starts the authorization process. /// </summary> /// <param name="Url">The authentication request AuthRequestUrl.</param> procedure StartAuthorization(AuthRequestUrl: Text); /// <summary> /// Creates link to start the authorization process /// </summary> procedure Authorize(Url: Text; LinkName: Text; LinkToolTip: Text); /// <summary> /// Event triggered when an authorization code is retreieved. /// </summary> /// <param name="AuthCode">The authorization code retrieved as part of the authentication process.</param> event AuthorizationCodeRetrieved(AuthCode: Text); /// <summary> /// Event triggered when the authorization process has failed. /// </summary> /// <param name="AuthError">The authorization error message received.</param> /// <param name="AuthErrorDescription">A description of the authorization error received.</param> event AuthorizationErrorOccurred(AuthError: Text; AuthErrorDescription: Text); /// <summary> /// Event triggered when the Add-In is loaded and ready to use. /// </summary> event ControlAddInReady();}#pragma warning restore AA0247#endif