RStudio代理身份验证

编程入门 行业动态 更新时间:2024-10-20 07:43:18
本文介绍了RStudio代理身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经为RStudio服务器设置了代理身份验证.

I've setup proxied authentication for RStudio Server.

RStudio服务器正在重定向到使用Express JS实现的中间件 中间件创建一个到身份验证服务器的请求,然后解析来自它的响应.

RStudio Server is redirecting to a middleware implemented using Express JS The middleware creates a request to the authentication server and then parses the response from it.

然后,中间件将X-RStudio-Username标头添加到响应中,这是对RStudio的重定向.但是,标头已添加到来自中间件的响应中,然后当浏览器重定向到RStudio服务器时,浏览器便不保留它

Then the middleware adds the X-RStudio-Username header to the response, which is a re-direction to the RStudio. However, the header is added to the response from the middleware, and then the browser doesn't keep it when it redirects to RStudio Server

由于浏览器请求没有必需的标头,因此RStudio再次请求身份验证,从而创建无限循环

Since the browser request doesn't have the required header, RStudio requests the authentication again creating an infinite loop

我应该如何处理这种情况?

How should I approach this case?

为RStudio服务器添加所需标头的最佳方法是什么?

What would be the best way to add the required header for RStudio Server?

推荐答案

浏览器不会为您添加此标头.您需要将其添加到代理流量到RStudio服务器的层中.如果您还没有这样的图层,则需要使用例如Nginx.该层可以使用您的身份验证提供程序支持的任何机制对请求进行身份验证,并添加X-RStudio-Username标头(出于安全原因,我们建议重命名).

The browser won't add this header for you. You need to add it in the layer that proxies traffic through to RStudio Server. If you don't have such a layer already, you will need to add it using e.g. Nginx. This layer could authenticate the request using whatever mechanism your auth provider supports and add the X-RStudio-Username header (which we recommend renaming for security reasons).

由于您使用的是RStudio Server Pro,我们的支持团队很乐意为您提供帮助:

Since you're using RStudio Server Pro, our support team would be happy to help you with this:

support@rstudio

support@rstudio

您也将很高兴知道我们正在为即将发布的RStudio Server Pro版本提供SAML支持!

You'll also be glad to know that we're working on SAML support for an upcoming release of RStudio Server Pro!

更多推荐

RStudio代理身份验证

本文发布于:2023-11-08 07:17:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568705.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   RStudio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!