Skip to content

Can't test bearer auth #179

Answered by Christoph-AK
Christoph-AK asked this question in Q&A
Discussion options

You must be logged in to vote

... this is a bit of a facepalm:

Everything works as expected.

Turns out: My Login endpoint is returning a Json(String), which is "validtesttoken".
Of course the two quotation marks are nonsense here.

Either changing my Login endpoint to return Plaintext(String) or to do a .replace("\"", "") on the token solves the problem and lets the test pass.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Christoph-AK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant