Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

How to completely wipe the CustomTab created by Xamarin.Auth from back history? #439

Open
1 task
winstonpang opened this issue May 3, 2020 · 0 comments
Open
1 task

Comments

@winstonpang
Copy link

Xamarin.Auth Issue

Version

  • nuget version = 1.7.0.0

Steps to reproduce

Using the standard boiler plate of getting Auth running.

Specifically to bring up the CustomTab page:

return new OAuth2Authenticator(
_authConfig.ClientId,
null,
string.Join(" ", AuthConfig.Scopes),
new Uri(_authConfig.AuthServerBaseUrl),
new Uri(_authConfig.RedirectUri, UriKind.Absolute),
new Uri(_authConfig.AccessTokenServerBaseUrl),
null,
false)
{
AllowCancel = true,
ClearCookiesBeforeLogin = true,
};

Expected behaviour

After authentication is successful, and you have navigated to a new Activity, pressing back should not show the CustomTab with the login page in it.

Actual behaviour

When you have finished authenticating and after Authenticator.OnPageLoading is invoked in your CustomInterceptorActivity, bringing up a new Activity with intent options ClearTop does not remove the CustomTab instance (the view that shows your login page), i.e. when you are in the next activity that you show, pressing back goes back to this CustomTab

Feature description

Write a description of the feature. How should it work? How should it look?
Include some graphics if this could help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant