kveldssang
kveldssang

Reputation: 1

Issue with Salesforce (openld) authentication on a java Android app

First of all, sorry for my poor english as it is not my native language.

So my coworkers set up a Salesforce authentication via openld on a Java Android app. The auth demand gets us back a valid access_token, which allows us to obtain informations on the Salesforce API.

The problem is that when the user disconnects from the application, the connexion is still active and doesn't ask again for user's password, which is an obvious security issue. Do you know how we could force a new authentication each time the user disconnects ?

We already tried token revocation but it also revokes every rights from the user, which doesn't satisfy us. We just need the app to ask for a login after a disconnection.

Thanks in advance !

Upvotes: 0

Views: 79

Answers (1)

Priya Sindkar
Priya Sindkar

Reputation: 513

Salesforce SDK saves the login details in preferences, thus it doesn't ask for authentication the next time user visits the app. You can logout of Saleforce to clear the saved data using this:

SalesforceSDKManager.getInstance().logout(this);

Upvotes: 0

Related Questions