-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebAuthenticatorCallbackActivity for Android
- Loading branch information
1 parent
717b2ef
commit 0d82622
Showing
2 changed files
with
16 additions
and
1 deletion.
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
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 | ||
{ | ||
|
16 changes: 16 additions & 0 deletions
16
Sample/Auth0MauiApp/Platforms/Android/WebAuthenticatorActivity.cs
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,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"; | ||
} | ||
|
||
} |