AzureAD / MSAL.PS

MIT License
159 stars 29 forks source link

Customize or close default browser window after successful authentication #42

Open GruberMarkus opened 2 years ago

GruberMarkus commented 2 years ago

When acquiring a token with Get-MsalToken (latest version) using the default browser, a browser window stays open.

This windows shows the RedirectionUri as address (http://localhost:62867/?code=...), and the site contains only the text "Authentication complete. You can return to the application. Feel free to close this browser tab.".

This window does not contain any information which application asks for logon data and for what reasons.

Is there a way to customize this browser window, to add information to it or to close it automatically?

If there is currently no way in MSAL.PS, but in MSAL itself, I would like to propose this as a new feature for MSAL.PS.

Thanks in advance!

jazuntee commented 2 years ago

This customization is possible in the latest MSAL.NET versions so I could look into adding something here in the future.