Rstudio: Running rserver without authentication

Created on 25 Oct 2017  路  3Comments  路  Source: rstudio/rstudio

I wish to run rserver without authentication. So only one user will be connected to the rserver and no authentication will be made.

I tried running rserver with --auth-none 1

rserver --www-port 9000 --auth-none 1 --auth-validate-users 0

but i am still unable to initialize the client

curl -X POST --form method=client_init http://localhost:9000/rpc/client_init

Response

{"error":{"code":3,"error":null,"message":"Client unauthorized"}}

I want to run rserver using only one user without authentication and without rstudio application. I want to build my own UI that communicate with rserver.
Thanks in advance.

verified

Most helpful comment

@riteshkukreja if that helps still, turns out we also need to set system environmental variable USER=rstudio in order for --auth-none 1 to work (no need to set --auth-validate-users 0 btw).

All 3 comments

If you don't need a UI and you don't want authentication then RStudio Server is probably not what you want to use (it isn't designed for this use case). If you're looking to build a web front end to some R code, you might be better served by something like Plumber:

https://github.com/trestletech/plumber

Hope this helps! If you want to discuss further we recommend the RStudio community forum:

https://community.rstudio.com/

But running the rserver with --auth-none 1 --auth-validate-users 0 should allow me to execute R commands without authenticating user, right?
Let me trim my use case, I wish to execute R commands and get auto completion without authentication.
Is this possible?

@riteshkukreja if that helps still, turns out we also need to set system environmental variable USER=rstudio in order for --auth-none 1 to work (no need to set --auth-validate-users 0 btw).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StefanBrand picture StefanBrand  路  3Comments

cderv picture cderv  路  3Comments

vrodriguezf picture vrodriguezf  路  3Comments

kevinushey picture kevinushey  路  3Comments

Iuiu1234 picture Iuiu1234  路  3Comments