Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.x] Fix issues with PowerBIManagement and OAuthIntegration #642

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#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.
Expand All @@ -8,16 +7,13 @@ namespace System.Security.Authentication;

controladdin OAuthControlAddIn
{
Scripts = 'Resources\OAuthIntegration\js\OAuthIntegration.js';
StartupScript = 'Resources\OAuthIntegration\js\Startup.js';
RequestedWidth = 0;
RequestedHeight = 0;
HorizontalStretch = false;
VerticalStretch = false;
ObsoleteState = Pending;
ObsoleteReason = 'This control add-in is replaced by OAuthIntegration.';
ObsoleteTag = '24.0';

Scripts = 'Resources\OAuthIntegration\js\OAuthIntegration.js';
StartupScript = 'Resources\OAuthIntegration\js\Startup.js';

/// <summary>
/// Starts the authorization process.
Expand All @@ -42,5 +38,4 @@ controladdin OAuthControlAddIn
/// Event triggered when the Add-In is loaded and ready to use.
/// </summary>
event ControlAddInReady();
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ namespace System.Security.Authentication;

controladdin OAuthIntegration
{
RequestedWidth = 0;
RequestedHeight = 0;
HorizontalStretch = false;
VerticalStretch = false;
HorizontalShrink = true;
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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ controladdin PowerBIManagement
HorizontalStretch = true;
HorizontalShrink = true;

Scripts = 'Resources\PowerBIManagement\js\PowerBIManagement.js';
Scripts = 'Resources\PowerBIManagement\js\PowerBIManagement.js',
// The powerbi.js file comes from the nuget package: Microsoft.PowerBI.Javascript version: 2.22.2
// https://github.com/microsoft/PowerBI-JavaScript/blob/master/dist/powerbi.js
// The file below should point to the nuget package when the AL infrastructure supports it.
'Resources\PowerBIManagement\js\powerbi.js';
StartupScript = 'Resources\PowerBIManagement\js\Startup.js';
StyleSheets = 'Resources\PowerBIManagement\stylesheets\PowerBIManagement.css';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ page 502 OAuth2ControlAddIn
InstructionalText = 'A sign in window is open. To continue, pick the account you want to use and accept the conditions. This message will close when you are done.';
ShowCaption = false;
}
usercontrol(OAuthIntegration; OAuthIntegration)
usercontrol(OAuthIntegration; OAuthControlAddIn)
{
ApplicationArea = All;
trigger AuthorizationCodeRetrieved(code: Text)
Expand Down
Loading
Loading