Open blmiles opened 1 year ago
Same issue when I tested on Android:
System.InvalidOperationException: You must subclass the WebAuthenticatorCallbackActivity
and create an IntentFilter for it which matches your callbackUrl
.
at Microsoft.Maui.Authentication.WebAuthenticatorImplementation.AuthenticateAsync(WebAuthenticatorOptions webAuthenticatorOptions) in D:\a_work\1\s\src\Essentials\src\WebAuthenticator\WebAuthenticator.android.cs:65
at MauiAuth0App.Auth0.WebBrowserAuthenticator.InvokeAsync(BrowserOptions options, CancellationToken cancellationToken) in /Users/faguirre/maui/examples/dotnet-maui-auth0-app/Auth0/WebBrowserAuthenticator.cs:12
at IdentityModel.OidcClient.AuthorizeClient.AuthorizeAsync(AuthorizeRequest request, CancellationToken cancellationToken) in //src/OidcClient/AuthorizeClient.cs:56
at IdentityModel.OidcClient.OidcClient.LoginAsync(LoginRequest request, CancellationToken cancellationToken) in //src/OidcClient/OidcClient.cs:75
at MauiAuth0App.Auth0.Auth0Client.LoginAsync() in /Users/faguirre/maui/examples/dotnet-maui-auth0-app/Auth0/Auth0Client.cs:37
at MauiAuth0App.MainPage.OnLoginClicked(Object sender, EventArgs e) in /Users/faguirre/maui/examples/dotnet-maui-auth0-app/MainPage.xaml.cs:34
at at System.Threading.Tasks.Task.<>c.
Found this repository (same creator) that works in Android: https://github.com/auth0-blog/dotnet-maui-token-management
Hello,
I have followed this code precisely. Maui app, targeting Android, iOS and Windows. All .Net7, latest OS on each.
This sets the callback:
I keep getting this error:
Cannot find much on editing the AppxManifest.xml file and no access to it in VS either unless I'm missing something. Wonder if this might be a local Windows issue as I try run this on my local/dev machine.
EDIT: And in Android I get this:
One or more errors occurred. (You must subclass the WebAuthenticatorCallbackActivity and create an IntentFilter for it which matches your callbackUrl.)'
This sample I think needs to be expanded to include some of this info as there are obviously some new/additional steps missing. It is hard to keep up with the pace of change and moving technical targets, I realize that!
Thanks