When App is already Logined with Portal Authentication and uninstalls the app, then install fresh app it automatically relogin

181
1
3 weeks ago
KamalSharma
New Contributor

When App is already Logged in with Portal Authentication and user uninstalls the app, then install fresh app it automatically land on home page without asking for Creds.

tried to remove information even when app launch but nothing worked .

but If I manually sign-out it do the logout : 

await ArcGISEnvironment.authenticationManager.revokeOAuthTokens()

await ArcGISEnvironment.authenticationManager.clearCredentialStores()

 nothing is working but why.

0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor

Hi @KamalSharma,

I'm assuming that app is using the persistent credential stores. If yes, you should execute these lines immediately after the code line which sets the persistent stores for persisted credentials to be removed. 

await ArcGISEnvironment.authenticationManager.revokeOAuthTokens()

await ArcGISEnvironment.authenticationManager.clearCredentialStores()

If above suggestion does not resolve issue then please provide detailed steps to reproduce the issue along with code.

Regards,

Nimesh

0 Kudos