【发布时间】:2021-05-01 05:44:56
【问题描述】:
我正在尝试使用 IBM Websphere 创建 OAuth2.0 身份验证服务器。 我已按照here 的步骤进行操作。
步骤:
- 使用 OauthConfigSample.xml 模板创建了 OAuthProvider。
- 使用 installOAuth2Service.py 安装了 IBM 提供的 EAR。
- 启用 OAuth TAI。
- 使用示例 base.clients.xml 文件注册的客户端。
现在我正在尝试使用邮递员获取令牌,但在通过浏览器进行身份验证时,我无法进行身份验证并出现错误(PasswordCheckFailedException: CWWIM4537E No principal is found from the 'Client01' principal name.)。
我已经关注了这个answer。
请指导。
【问题讨论】:
-
我从baeldung.com/java-ee-oauth2-implementation 获得了一个例子。所以我对注册用户感到困惑。在@Chunglong 之后,我了解到的有关登录页面凭据的“注册用户”的建议示例将是WebSphere 控制台凭据。除此之外,我还没有在 Global security-> Application security 下“启用应用程序安全”。感谢中隆
标签: security oauth-2.0 websphere restful-authentication