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

Problem to get access token #15

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello,

I have a problem to get access token: I use docker solution I use Postman to add End-users

I have installed solution on a virtual server using docker-machine (boot2docker) and I have installed solution on my computer using docker engine(Windows 10 64bit professionnal) I didn't customize installation because, we want to benchmark its implementation. But I have the same problem on both machine:

I can't get access token using postman (these screenshots concerns Boot2docker machine) postman_b2d_envrionnement_settings postman_tokenrequest_result

Could you help me to solve my problem?

Thank

ghost commented 7 years ago

Hi

I have resolved my problem. First I haven't created a client in postgre database. I have noticed that user/password in sample script are different from user/password in Postman request.

Second part: get access token using RO password grant request in postman use form-data but I receive an error message. Invalid request. I 've changed configuration in Postman (see screenshot) and I receive my access token. image