Frappe Oauth or Token bases auth provider for Android


I want to configure frappe so that an android app can authenticate with it through posting username and password and frappe returns a Token to be saved on the android device.
Then the android app can call the different doctypes that a user can access.

The information i need is:

  • How to setup the Oauth integration on frappe backend
  • Which method to call with credentials in order to receive a token
  • how long does a token stay active


Did you referred this

Use this library in your android app,

It implements Authenticator and adds Account to AccountManager, you can use AccountManager’s getAuthToken or blockingGetAuthToken to retrieve bearer token and use it with request.