#How to write Integration Test with the usage of Bearer Token in Spring Boot (throw An Authentication

3 messages · Page 1 of 1 (latest)

flat tangle
#

I have a problem to write Integration Test in my Spring Boot example. In my UserController class, every methods are defined with PreAuthorize with roles.

Here is the link : https://stackoverflow.com/questions/76172699/how-to-write-integration-test-with-the-usage-of-bearer-token-in-spring-boot-thr

carmine joltBOT
#

This post has been reserved for your question.

Hey @flat tangle! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.