Spring Security 通常用于 Web 应用程序和 Web 服务的身份验证和授权。而spring可以根据通过Web表单传递的credentials_id(用户id)和credenttails_secret(密码)来验证用户。
我正在看的是
1)当这些用户名和密码通过http header 传递时,Spring可以工作。
2) 在后续请求中,Spring 可以根据通过 http header 传递的 session ID(例如 jsessionid 之类的东西)来验证用户吗?
最佳答案
您可以在项目中添加 spring-security
模块。
关于spring - Spring Security可以解析 header 并验证身份验证信息吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45137358/