ShinyProxy 和 IdentityServer4 身份验证

时间:2021-01-27 17:53:31

标签: shiny identityserver4 shinyproxy

我的 ShinyProxy 已启动并正在运行。如果我使用基本身份验证,它就可以工作。我想将 ShinyProxy 与我的 IdentityServer4 连接。

按照documentation of ShinyProxy,我将ShintProxy配置如下:

proxy:
  title: Open Analytics Shiny Proxy
  port: 8080

  authentication: openid
  admin-groups: scientists
  openid:
    auth-url: https://myidentityserver4/connect/authorize
    token-url: https://myidentityserver4/connect/token
    jwks-url: https://myidentityserver4/.well-known/openid-configuration/jwks
    client-id: ShinyProxy
    client-secret: password

当用户打开浏览器到 ShinyApp 时,它被重定向到 IdentityServer4 的登录页面。用户可以登录然后重定向到

<块引用>

http://myshinyproxyurl)/login/oauth2/code/shinyproxy

不幸的是,结果是

enter image description here

或者如果我在笔记本电脑上尝试,错误会略有不同

enter image description here

ShinyProxy 中的重定向似乎过多。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

经过大量的研究和学习,我找到了如何使用 ShinyProxy 实现 Identity Server。我在 my blog 中创建了完整的分步指南。

我希望它可以帮助其他人。