Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Nov 6, 2023
1 parent 9e22dc4 commit 89e28e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions articles/quickstart/native/maui/01-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ public class WebAuthenticatorActivity : Microsoft.Maui.Authentication.WebAuthent
The above activity will ensure the application can handle the `myapp://callback` URL when Auth0 redirects back to the Android application after logging in.

### Windows
To support Windows, the SDK relies on [WinUIEx](https://github.com/dotMorten/WinUIEx), a community-built package to provide a WebAuthenticator that supports Windows.

To make sure it can properly reactivate your application after being redirected back go Auth0, you need to do two things:

- Add the corresponding protocol to the `Package.appxmanifest`. In this case, this is set to `myapp`, but you can change this to whatever you like (ensure to update all relevant Auth0 URLs as well).
Expand All @@ -93,11 +91,11 @@ To make sure it can properly reactivate your application after being redirected
</Application>
</Applications>
```
- Call `WinUIEx.WebAuthenticator.CheckOAuthRedirectionActivation()` in the Windows specific App.xaml.cs file.
- Call `Activator.Default.CheckRedirectionActivation()` in the Windows specific App.xaml.cs file.
```csharp
public App()
{
if (WinUIEx.WebAuthenticator.CheckOAuthRedirectionActivation())
if (Auth0.OidcClient.Platforms.Windows.Activator.Default.CheckRedirectionActivation())
return;

this.InitializeComponent();
Expand Down
6 changes: 2 additions & 4 deletions articles/quickstart/native/maui/interactive.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public class WebAuthenticatorActivity : Microsoft.Maui.Authentication.WebAuthent
The above activity will ensure the application can handle the `myapp://callback` URL when Auth0 redirects back to the Android application after logging in.

### Windows
To support Windows, the SDK relies on [WinUIEx](https://github.com/dotMorten/WinUIEx), a community-built package to provide a WebAuthenticator that supports Windows.

To make sure it can properly reactivate your application after being redirected back go Auth0, you need to do two things:

- Add the corresponding protocol to the `Package.appxmanifest`. In this case, this is set to `myapp`, but you can change this to whatever you like (ensure to update all relevant Auth0 URLs as well).
Expand All @@ -85,11 +83,11 @@ To make sure it can properly reactivate your application after being redirected
</Application>
</Applications>
```
- Call `WinUIEx.WebAuthenticator.CheckOAuthRedirectionActivation()` in the Windows specific App.xaml.cs file.
- Call `Activator.Default.CheckRedirectionActivation()` in the Windows specific App.xaml.cs file.
```csharp
public App()
{
if (WinUIEx.WebAuthenticator.CheckOAuthRedirectionActivation())
if (Auth0.OidcClient.Platforms.Windows.Activator.Default.CheckRedirectionActivation())
return;

this.InitializeComponent();
Expand Down

0 comments on commit 89e28e0

Please sign in to comment.