OAuth2 与 Okta jhispter 文档说明

OAuth2 with Okta jhispter documentation instructions

我使用 jhipster 5.4.1。带有 OAuth2 的简单整体应用程序。我尝试同时使用 angluar 或 React 生成。

它适用于 Keycloak 本地测试。

我遵循 https://www.jhipster.tech/security/ 中针对 Okta 的所有说明。

然后,当 jhispter 应用程序尝试访问 okta 时出现错误 404

https://dev-796955-admin.oktapreview.com/error/404?fromURI=%2Foauth2%2Fdefault%2Fv1%2Fauthorize%3Fclient_id%My okta 客户端 ID 在这里%26redirect_uri%3Dhttp%3A%2F%2Flocalhost%3A8080%2Flogin%26response_type%3Dcode%26scope%3Dopenid%2520profile%2520email% 26个州%一些州

是说明:

specify http://localhost:8080 as a Base URI and http://localhost:8080/login as a Login Redirect URI

在 okta 网络应用程序中正确吗?

从您的 Okta 中删除“-admin”URL,然后一切正常。