Coding Global Background
Coding Global

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

Archived 3 years ago
0 messages
1 members
3 years ago
Open in Discord
D
direct_x_34
Copy Paster!

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