cloud9hub icon indicating copy to clipboard operation
cloud9hub copied to clipboard

Setup w/out GitHub?

Open kyle-github opened this issue 9 years ago • 2 comments

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?

kyle-github avatar Mar 14 '15 00:03 kyle-github

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:

  • https://github.com/AVGP/cloud9hub/blob/master/server.js#L53-L72
  • https://github.com/AVGP/cloud9hub/blob/master/server.js#L86-L87
  • https://github.com/AVGP/cloud9hub/blob/master/server.js#L99-L110
  • https://github.com/AVGP/cloud9hub/blob/master/server.js#L151-L157

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

  • https://github.com/AVGP/cloud9hub/blob/master/routes/middlewares/authorization.js#L14-L16

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

AVGP avatar Mar 25 '15 10:03 AVGP

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

kyle-github avatar Mar 25 '15 15:03 kyle-github