Get interactive token using MSAL in form

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
lasdan
Posts: 1
Last visit: Thu Sep 12, 2024 11:15 pm

Get interactive token using MSAL in form

Post by lasdan »

I'm writing a GUI where a function require a token from Azure. I'm using Get-MsalToken where the user interactively select the account to be used. This works fine if the request starts before the form, but is hidden if called from the form.
Is there a way to force the interactive logon to show while in the form?
This topic is 1 year and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked