Spring Security unexpected behavior for REST endpoints authentication?

前端 未结 6 1543
暖寄归人
暖寄归人 2021-01-15 03:44

The scenario we are looking for is as follows:

  1. client connects with REST to a REST login url
  2. Spring microservice (using Spring Security) should return
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 04:00

    It's a 302 response telling the browser to redirect to your login page. What do you expect to happen? 302 response must have a Location header.

提交回复
热议问题