raphaelDL / spring-webflux-security-jwt

A JWT authorization and authentication implementation with Spring Reactive Webflux, Spring Boot 2 and Spring Security 5
301 stars 87 forks source link

Private API fails with 500 in case of unauthorized user #5

Closed 7fantasy7 closed 6 years ago

7fantasy7 commented 6 years ago

Even /api/guest api fails.

With following stacktrace: https://pastebin.com/hbrkyWGi

How to make APIs return 401 instead of failing with 500, if no any creds were specified./

7fantasy7 commented 6 years ago

Ahhhh, found PR fixing it :\ https://github.com/raphaelDL/spring-webflux-security-jwt/pull/3