如何使用自定义OAuth2服务器在Wildfly上授权jsf应用程序
我有一个在Wildfly上运行的JSF应用程序。它有登录页面和自定义登录模块。登录模块转到DB以检查用户凭据并接收用户角色如何使用自定义OAuth2服务器在Wildfly上授权jsf应用程序,jsf,oauth-2.0,single-sign-on,wildfly,Jsf,Oauth 2.0,Single Sign On,Wildfly,我有一个在Wildfly上运行的JSF应用程序。它有登录页面和自定义登录模块。登录模块转到DB以检查用户凭据并接收用户角色 <security-domain name="icSecurity" cache-type="default"> <authentication> <login-module code="org.ic.auth.WfIcLoginModule" flag="
<security-domain name="icSecurity" cache-type="default">
<authentication>
<login-module code="org.ic.auth.WfIcLoginModule" flag="required"/>
</authentication>
</security-domain>
此外,我还有定制的OAuth2授权服务器,它工作正常,并公开端点,如:
- 授权uri:http://localhost:6060/auth/oauth/authorize
- 令牌uri:http://localhost:6060/auth/oauth/token
- 用户信息uri:http://localhost:6060/auth/user/me
- jwk集uri:http://localhost:6060/auth/.well-已知/jwks.json
我不允许使用KeyClope代替我的自定义身份验证服务器。实际上根本不能用钥匙斗篷。也许可以为wildfly使用Keyclope适配器连接到其他非Keyclope服务器?也许PicketLink库可以帮助我,但我还没有找到任何OAuth2服务器的示例。仅适用于SAML。与普通非jsf webapp相同。没什么不同