Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup w/out GitHub? #18

Open
kyle-github opened this issue Mar 14, 2015 · 2 comments
Open

Setup w/out GitHub? #18

kyle-github opened this issue Mar 14, 2015 · 2 comments

Comments

@kyle-github
Copy link

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
Copy link
Owner

AVGP commented Mar 25, 2015

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

if (!req.isAuthenticated()) {
return res.send(401, 'User is not authorized');
}
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
Copy link
Author

kyle-github commented Mar 25, 2015 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants