athenahealth / apiserver-athenaFlex

Software developers can use sample code and documentation to use athenahealth's athenaPractice/athenaFlow FHIR API Server.
https://mydata.athenahealth.com/home
17 stars 7 forks source link

Bad credentials (SECURITY_INVALID_CREDENTIALS) #319

Open kdevine opened 3 weeks ago

kdevine commented 3 weeks ago

I have used the clientId and clientSecret on other servers and it was working just fine. It works against the sandbox as well. What configuration on Athena Practice would throw this error when trying to access the token?

POST http://192.168.43.200:9080/centricityps/ws/Services/rs/emr/oauth2/token

Request Headers Authorization: Basic REDACTED Content-Type: application/x-www-form-urlencoded

Response Headers X-Powered-By: Undertow/1 Server: JBoss-EAP/7 X-XSS-Protection: 1; mode=block Pragma: no-cache X-Frame-Options: DENY Date: Thu, 07 Nov 2024 16:25:47 GMT Connection: keep-alive X-Content-Type-Options: nosniff Transfer-Encoding: chunked Content-Type: application/json;charset=ISO-8859-1

Response Body {"message":"Bad credentials (SECURITY_INVALID_CREDENTIALS)","id":401}