openmhealth / omh-dsu-ri

An application for storing mobile health data and authorizing access to it.
http://www.openmhealth.org/documentation/#/store-data/storage-overview
Apache License 2.0
39 stars 32 forks source link

Unable to get access token: 401 Bad Credentials #20

Closed HkB115 closed 6 years ago

HkB115 commented 6 years ago

Hello, I have tried setting this up on both a debian and ubuntu server, both giving me the same end result. I have docker, docker-compose, and docker-machine installed and working properly. I added the rows to the database and checked to make sure that the client has the correct details and the user does as well. However, when I try to get the access token using postman, it gives back a 401 bad credentials error. I have looked at the other issues on here and none of their solutions fixed my problem. Any help would be greatly appreciated.

sophieroos commented 5 years ago

Hi, I'm still having this issue. I used the Postman repository, first created the user, and using the same credentials to get the token. I'm getting this response: { "timestamp": "2019-02-19T14:23:03.891+0000", "status": 401, "error": "Unauthorized", "message": "Bad credentials", "path": "/oauth/token" }