【问题标题】:How can I prevent destructive auto-authorization on application startup when using "angular-auth-oidc-client"?使用“angular-auth-oidc-client”时,如何防止应用程序启动时的破坏性自动授权?
【发布时间】:2019-06-03 03:41:52
【问题描述】:

我的应用在"silent_run": true 模式下使用“angular-auth-oidc-client”。 我的应用程序以不同的路线开始,并且始终使用查询参数。我的应用程序中的大多数资源都不需要服务器上的授权。如果我需要授权,我通过this.oidcSecurityService.authorize()运行它,但预先保存当前路由和查询参数以在onAuthorizationResult event中恢复它。在 6.0.2 版本上,这有效,但从 version 6.0.12(“启动时检查有效令牌”)到现在的 9.0.0 版本,当应用程序启动时,大多数情况下不需要的授权过程会自动进行开始,然后分别重定向到"post_login_route",路由丢失 以及启动应用程序的请求参数。

如何防止应用程序启动时破坏性的自动授权?

【问题讨论】:

    标签: angular openid-connect angular-auth-oidc-client


    【解决方案1】:

    9.0.1 版添加了“history_cleanup_off”参数,如果您将其设置为“true”,则可以解决此问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-03
      • 2018-07-10
      • 1970-01-01
      相关资源
      最近更新 更多