{"action":"created","issue":{"url":"https://api.github.com/repos/hexparrot/mineos-node/issues/40","labels_url":"https://api.github.com/repos/hexparrot/mineos-node/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/hexparrot/mineos-node/issues/40/comments","events_url":"https://api.github.com/repos/hexparrot/mineos-node/issues/40/events","html_url":"https://github.com/hexparrot/mineos-node/issues/40","id":76222347,"number":40,"title":"Authentication system with express/socketio","user":{"login":"hexparrot","id":4994619,"avatar_url":"https://avatars.githubusercontent.com/u/4994619?v=3","gravatar_id":"","url":"https://api.github.com/users/hexparrot","html_url":"https://github.com/hexparrot","followers_url":"https://api.github.com/users/hexparrot/followers","following_url":"https://api.github.com/users/hexparrot/following{/other_user}","gists_url":"https://api.github.com/users/hexparrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hexparrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexparrot/subscriptions","organizations_url":"https://api.github.com/users/hexparrot/orgs","repos_url":"https://api.github.com/users/hexparrot/repos","events_url":"https://api.github.com/users/hexparrot/events{/privacy}","received_events_url":"https://api.github.com/users/hexparrot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hexparrot/mineos-node/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hexparrot/mineos-node/milestones/1","html_url":"https://github.com/hexparrot/mineos-node/milestones/Release%20Candidate","labels_url":"https://api.github.com/repos/hexparrot/mineos-node/milestones/1/labels","id":1109606,"number":1,"title":"Release Candidate","description":"The webui should be entirely functional and all known, glaring webui-crashing bugs or security concerns squashed.  All the English strings should be thoroughly examined to be sure there's enough descriptive help text which can be internationalized.\r\n\r\nServer.config, emit event names, and profile availability should be largely set in stone. Log storage may not yet be implemented in its final state (currently memory, potentially flat file, db).","creator":{"login":"hexparrot","id":4994619,"avatar_url":"https://avatars.githubusercontent.com/u/4994619?v=3","gravatar_id":"","url":"https://api.github.com/users/hexparrot","html_url":"https://github.com/hexparrot","followers_url":"https://api.github.com/users/hexparrot/followers","following_url":"https://api.github.com/users/hexparrot/following{/other_user}","gists_url":"https://api.github.com/users/hexparrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hexparrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexparrot/subscriptions","organizations_url":"https://api.github.com/users/hexparrot/orgs","repos_url":"https://api.github.com/users/hexparrot/repos","events_url":"https://api.github.com/users/hexparrot/events{/privacy}","received_events_url":"https://api.github.com/users/hexparrot/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-05-14T04:00:30Z","updated_at":"2015-05-14T04:11:21Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-05-14T04:11:21Z","updated_at":"2015-05-14T06:32:50Z","closed_at":null,"body":"Authentication is probably the biggest hurdle before being able to form a release candidate which admins could put to the test as a development/testing environment.\r\n\r\nI understand that the codebase I have created is fairly large and may not be immediately familiar, so the help I'm asking for does not need to--in any way--include, fork, or remotely relate to this git.\r\n\r\nI'm hoping to get a working example of Express 4.x + socketio 1.3 that can authenticate a hard-coded user (no need to worry about Linux shadow passwords).  Even 'admin:password' would work wonderfully. \r\n\r\nWhether you use passport (+passport-local, passport.socketio, etc) or not, any piece of code that can accomplish the following task will greatly push forward the status of this project:  *I must be able to access the user \"admin\" (or whatever username) from the socket object.*\r\n\r\nThe socket object--through middleware--should be able to be modified to contain this (this is the goal of passport.socketio).  Again, this code can be 100% without MineOS code or html.  Anything that can get the socket object to provide the authenticated username will be the answer to the entire authentication issue and I can adapt it to make it work with the webui."},"comment":{"url":"https://api.github.com/repos/hexparrot/mineos-node/issues/comments/101936575","html_url":"https://github.com/hexparrot/mineos-node/issues/40#issuecomment-101936575","issue_url":"https://api.github.com/repos/hexparrot/mineos-node/issues/40","id":101936575,"user":{"login":"flareofghast","id":1791927,"avatar_url":"https://avatars.githubusercontent.com/u/1791927?v=3","gravatar_id":"","url":"https://api.github.com/users/flareofghast","html_url":"https://github.com/flareofghast","followers_url":"https://api.github.com/users/flareofghast/followers","following_url":"https://api.github.com/users/flareofghast/following{/other_user}","gists_url":"https://api.github.com/users/flareofghast/gists{/gist_id}","starred_url":"https://api.github.com/users/flareofghast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flareofghast/subscriptions","organizations_url":"https://api.github.com/users/flareofghast/orgs","repos_url":"https://api.github.com/users/flareofghast/repos","events_url":"https://api.github.com/users/flareofghast/events{/privacy}","received_events_url":"https://api.github.com/users/flareofghast/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T06:32:50Z","updated_at":"2015-05-14T06:32:50Z","body":"Yeah sorry I have been MIA for a little while. I just haven't had the time to give this a go. I do think I could do it with passport.socketio with my auth branch with out much more bother but just don't currently have time to look into it."}}