-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add msal window changes to docs
- Loading branch information
1 parent
1710def
commit 878741a
Showing
3 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
uid: Uno.Extensions.Migration | ||
--- | ||
|
||
# Upgrading Extensions Version | ||
|
||
## Upgrading to Extensions 5.2 | ||
|
||
### MSAL Authentication | ||
|
||
When upgrading to Uno.Extensions 5.2 or later, you must update your MSAL authentication setup in the host configuration. The `AddMsal()` method now includes an additional parameter to specify the `Window` instance used by the `MsalAuthenticationProvider` to configure the authentication dialog. You can obtain the `Window` instance from the `Configure()` method overload that provides it: | ||
|
||
```diff | ||
private IHost Host { get; set; } | ||
|
||
protected override void OnLaunched(LaunchActivatedEventArgs args) | ||
{ | ||
var builder = this.CreateBuilder(args) | ||
- .Configure(host => | ||
+ .Configure((host, window) => | ||
{ | ||
host | ||
.UseAuthentication(builder => | ||
{ | ||
- builder.AddMsal(); | ||
+ builder.AddMsal(window); | ||
}); | ||
}); | ||
... | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters