AVGP / cloud9hub

A workspace dashboard for Cloud9
97 stars 47 forks source link

Setup w/out GitHub? #18

Open kyle-github opened 9 years ago

kyle-github commented 9 years ago

Perhaps this is partially covered in #6, but I am not sure.

I've never used Node either. I do not want to use GitHub login. I am trying to set this up behind my firewall at home. It is not on a publicly accessible server, so there is no callback URL possible.

I do not even care if there is a login at all. I'm just trying to see if I can get my Chromebook to be a useful development platform :-)

Can I turn off authentication completely or use .htpaccess or something like that? Any ideas?

AVGP commented 9 years ago

Hey, sorry for taking so long to respond.

Regarding your question if this could work without Github, yes it can. Thankfully somebody is undertaking the effort to make that work, so it shouldn't be long until you can configure user/password login based on a local database.

But as you're not interested in logins at all, you can do something else in the meantime. In https://github.com/AVGP/cloud9hub/blob/master/server.js you can remove the parts that require authentication:

and then in https://github.com/AVGP/cloud9hub/blob/master/routes/middlewares/authorization.js remove the following part:

And replace https://github.com/AVGP/cloud9hub/blob/bcbd58b95e8fed0d2717e9e4fe02dda3cd2c7fea/routes/middlewares/authorization.js#L7-L9 with:

  req.user = "me";

That should be all. If you're hitting any roadblocks, let me know and I'll try to figure it out with you

kyle-github commented 9 years ago

Thanks! I'm out for the whole week and probably won't get a chance to try this for a little while.