Problem logging in using Android App


#1

I’m having an issue when logging in using the android app, I’ve used the same links used in Postman API for POST request but when I log in using the Android app it gives an internal server error, this code that I have is also used by my colleague and he can login, but my app can’t, I have no idea why, can anyone help?


#2

what is the URL you calling in your code?


#3

https://auth.mydevices.com/oauth/token


#4

This is the end point you need to call for getting access token.

curl --request POST \
  --url https://accounts.mydevices.com/auth/realms/cayenne/protocol/openid-connect/token \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'grant_type=password&client_id=<get from web dashboard>&client_secret=<get from web dashboard>&username=<email>&password=<password>

#5

I see, I have to try this out, thank you so much!


#6

I have a similar problem using JAVA Android.
The details are here