Online IDE that you can share a private url for invitees to view

80 Views Asked by At

I thought for sure this would be a normal thing, but while reading about Nitrous, Koding, Codio, etc, I couldn't quite find it.

I want to build a site in an online IDE and share a private url with people to use it. I don't want the public to see it, only those that I invite via email or authentication or ???

I thought Codio did it, but it says that no-one can see a private url. And everyone can see a public url. Not what I want.

1

There are 1 best solutions below

0
On

You can set http basic auth on rails and django applications on Nitrous.

Here's a detailed article explaining how to set http basic auth on a Rails and Django application:

https://community.nitrous.io/docs/setting-up-basic-auth-on-nitrous-preview-urls

Example Rails controller code:

class PostsController < ApplicationController
   http_basic_authenticate_with name: "foo", password: "bar", except: :index

   def index
     render text: "This text can be seen by everyone."
   end

   def edit
     render text: "You can only view this if you know the username and password."
   end
end