带有REST API基本身份验证的Spring反应式安全性

时间:2020-02-03 09:17:39

标签: spring-security-rest spring-reactive

我在使用Spring Security Reactive +基本身份验证+ rest api + react redux时遇到问题。

我正在尝试从react(客户端)实现身份验证。在正确的用户名和密码的情况下,它可以正常工作。但是,如果凭据不正确而不是返回401的情况,我的请求将被取消,并发送一次基本身份验证,然后继续。因此我无法处理错误的凭据方案。

下面是错误的屏幕截图。

enter image description here

enter image description here

enter image description here

0 个答案:

没有答案