Error when requesting client access token from server API #103
-
I'm running the OPAL server using the docker image, and I'm getting the following error from the The request seems to match the swagger definition, so I'm not sure what's missing that's causing the error. Any help or tips would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @rbanks-willow, OPAL was recently upgraded to a more recent version of FastAPI and they became a little bit more strict with HTTP request content-type (supposedly due to security issues). The In postman, simply change the following: A valid request example |
Beta Was this translation helpful? Give feedback.
-
As far as I can tell, this also applies to the obtain-token function from the opal cli -- here with an added pprint of the json response:
|
Beta Was this translation helpful? Give feedback.
Hi @rbanks-willow,
OPAL was recently upgraded to a more recent version of FastAPI and they became a little bit more strict with HTTP request content-type (supposedly due to security issues).
The
Content-Type
header of all your requests must beapplication/json
, you are currently submittingtext/plain
.In postman, simply change the following:
A valid request example
A valid request (and response) will look like this: