Oauth 2.0 OAuth2重定向-OAuth2/authorization/oidc

Oauth 2.0 OAuth2重定向-OAuth2/authorization/oidc,oauth-2.0,keycloak,jhipster,jhipster-gateway,Oauth 2.0,Keycloak,Jhipster,Jhipster Gateway,我正在尝试使用Jhipster microservice设置(v6.10.5)来理解OAuth2 Jhipster注册表 使用--跳过服务器生成的网关UI(角度) 使用--跳过客户端生成的网关服务器 钥匙斗篷 当我提出所有这些服务时,一切都按预期进行 我正在查看Angular项目,在我看到的“login.service.ts”文件中找不到任何oauth2库 location.href = `${location.origin}${this.location.prepareExternalUrl(

我正在尝试使用Jhipster microservice设置(v6.10.5)来理解OAuth2

  • Jhipster注册表
  • 使用--跳过服务器生成的网关UI(角度)
  • 使用--跳过客户端生成的网关服务器
  • 钥匙斗篷
  • 当我提出所有这些服务时,一切都按预期进行

    我正在查看Angular项目,在我看到的“login.service.ts”文件中找不到任何oauth2库

    location.href = `${location.origin}${this.location.prepareExternalUrl('oauth2/authorization/oidc')}`;
    
    但是在网关服务器端,我找不到任何配置/代码将此调用重新定向到KeyClope登录页面。有人能帮我理解一下这个电话是怎么回事吗


    注意:我还同时生成了带有UI和服务器的网关,但代码似乎是相同的。

    如果使用反应式webflux堆栈,则重定向通过以下过滤器完成:

    org.springframework.security.oauth2.client.web.server.OAuth2AuthorizationRequestRedirectWebFilter
    
    如果使用servlet堆栈,则重定向通过过滤器完成:

    org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter