Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token is not clearing in Android emulator after app uninstall #46

Closed
skyshine999 opened this issue Oct 24, 2019 · 7 comments
Closed

Token is not clearing in Android emulator after app uninstall #46

skyshine999 opened this issue Oct 24, 2019 · 7 comments

Comments

@skyshine999
Copy link

I integrated this plugin it is working fine in ios and android.In android I am able to run and done successful login. After that i uninstalled the app from emulator and try to run again and clicking on login it is going to silent login.i kept backup= false in android manifest still it is storing token in async storage.

@vmurin
Copy link
Owner

vmurin commented Oct 24, 2019

You are right - currently there is no such feature like "clear all cached data"

I will think about possible implementation but it can not be called on uninstall automatically. It is rather the OS task...

@skyshine999
Copy link
Author

skyshine999 commented Oct 25, 2019

Are you storing token in async storage or somewhere. If you are storing in async storage it will be cleared after uninstall.

@vmurin
Copy link
Owner

vmurin commented Oct 25, 2019

In have today published new version with the new method clearPersistentCache (link)
You can use it on your own. And on uninstall cached in AsyncStorage data will be cleared as well (as you wrote)

So I close this issue.

@vmurin vmurin closed this as completed Oct 25, 2019
@skyshine999
Copy link
Author

skyshine999 commented Oct 29, 2019

i have taken your latest plugin after that i logged in and uninstalled the app. Again i installed the app i am able to see previous user login details.
Everywhere if we uninstall app it will delete all login details. Have you implemented same feature here

@vmurin
Copy link
Owner

vmurin commented Oct 29, 2019

Where and how you can see the user login details? Which details you see?

@skyshine999
Copy link
Author

I am able to see emailid and it is showing message like "Are you trying to sign in myapp?". If i press yes it is doing silent login without my password.

@vmurin
Copy link
Owner

vmurin commented Nov 12, 2019

Just want additionally comment this issue to clear the behavior.

The library uses system browser (different components on iOS and Android but with similar behavior) to login into Azure. There is a number of reasons to do so. A good explanation you can find for example here.

If you uninstall your app it does affect of course the system browser component. And if you reinstall the app und login shortly after that, the browser component uses saved cookies to re-login into Azure.
There is no security breach, this is intended behavior as long as the tokens saved in cookie are valid. The cookie tokens are short-lived, usually not longer as 1 hour. After this period of time the user will be re-prompted to enter his password.

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

No branches or pull requests

2 participants