问题描述
我在Websphere 9.0上部署了一个简单的Spring Boot REST API。
此API具有一个登录端点,该端点应触发Websphere内的身份验证流程。
当我在SecurityConfig中使用指定jee()标记的基本身份验证时,一切正常。甚至角色也已正确映射。因此,preAuthentication部分正在运行。但是,我想使用我的自定义登录端点代替基本身份验证。
例如:
POST / auth / login {“用户名”:“某物,密码”:“某物”}
我已经尝试调用
import javax.http.HttpServletRequest;
...
@PostMapping("/auth/login")
public void login(HttpServletRequest request) throws servletexception {
request.login("something","something");
}
...
但这会触发DaoAuthenticationProvider,而不是Websphere本身内的身份验证提供程序。
任何帮助将不胜感激。我在这里想念什么?
解决方法
是的,有一种方法:
html.H3('Distributions',style={'font-size': '20px','text-decoration': 'underline'})