Skip to content

Commit

Permalink
Add WebAuthenticatorCallbackActivity for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Oct 12, 2023
1 parent 717b2ef commit 0d82622
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sample/Auth0MauiApp/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace Auth0MauiApp
{
Expand Down
16 changes: 16 additions & 0 deletions Sample/Auth0MauiApp/Platforms/Android/WebAuthenticatorActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Android.App;
using Android.Content.PM;
using Android.Content;

namespace Auth0MauiApp
{
[Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop, Exported = true)]
[IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable },
DataScheme = CALLBACK_SCHEME)]
public class WebAuthenticatorActivity : Microsoft.Maui.Authentication.WebAuthenticatorCallbackActivity
{
const string CALLBACK_SCHEME = "myapp";
}

}

0 comments on commit 0d82622

Please sign in to comment.