I was trying to setup the auth using browser setup in the android app with this PR.
I got to see this documentation to setup the OAuth application in the Django toolkit here and as said, I have created the application with the redirect uri and added grant type as Authorization code.
From the android app, I got to the browser screen to login and once logged in even though I got to the app screen, it showed an error. The log shows this {"error_code":"non_supported_token","developer_message":"Only access tokens with grant type password are supported."}
Is there anything I am missing? Thanks in advance!
The reason for that error is that the mobile app tries to exchange the auth token for a cookie/session login so that it can interact with some views that need that login session. However, the auth exchange API only supports tokens generates from an password-based OAuth client while the one in the Android app is auth code based.
We’ve fixed this issue in this PR, which you might need to backport to your release.