Skip to content

Error when requesting client access token from server API #103

Answered by asafc
rbanks-willow asked this question in Q&A
Discussion options

You must be logged in to vote

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 be application/json, you are currently submitting text/plain.

In postman, simply change the following:

A valid request example

A valid request (and response) will look like this:

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by asafc
Comment options

You must be logged in to vote
5 replies
@phi1010
Comment options

@asafc
Comment options

@phi1010
Comment options

@phi1010
Comment options

@asafc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #102 on July 18, 2021 11:41.