ali-bouali / spring-boot-3-jwt-security

Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6
https://aliboucoding.com/p/securing-your-spring-boot-3-0-applications-with-json-web-tokens-jwt
Apache License 2.0
1.86k stars 870 forks source link

OpenAPI docs redired url fixed. SecurityConfiguration adding Custom-Exceptions for 401/Unauthorized and 403/Forbidden #76

Open Saidafzalkhon opened 3 months ago

Saidafzalkhon commented 3 months ago

When I used this OpenAPI I figured out several problems. I resolved this following examples: OpenAPI docs changed to default url like (http://localhost:8080). As well as found problem with SecurityConfiguration before it responses only 403/Forbidden, Now it works true if error suitable with 401/Unauthorized or 403/Forbidden