Closed fintans closed 2 years ago
As far as I can see, the issue is with the server configuration: you use withDefaultHostname("http://localhost")
, but the hostname is not supposed to contain the protocol part. Please use withDefaultHostname("localhost")
and see if it works.
This was the problem! Thank you so much.
I am trying to run an integration test. When I add the Auth header, I get the above error. When I remove the auth header, the test passes. I have removed any authentication on my end points just so I can try get this working.
I have downgraded to sring-boot
2.4.4
as suggested in other discussion threads.The jwt is being successfully created, but when I add it to auth headers, I get the
401
errorError logs:
applicaction.properties:
I am not (yet) authenticating the above endpoint in security config