-
Notifications
You must be signed in to change notification settings - Fork 32
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
Plugin system with authentication and userlist plugin. #35
Conversation
Moved authentication and user logging to plugin system. Implemented 'users_online' server request.
Wow, this is really impressive @timschwartz! I haven't tested it out yet, but gave the code a peruse this morning. I won't be around much today to test most likely but I'll try as soon as possible.
|
We could include the node_modules/ directory in the plugin search path. Actually, now that I think about it, require() already loads stuff from node_modules/. So making an npm package "should" just work with a slight edit to the plugin loading function. |
I'm going to make a few changes and repush this. |
Was just about to reply when you closed this... you can actually just push to the branch to make changes. |
Changed 'mysql-userlist' to npm package 'janus-mysql-userlist'. Removed plugins/ directory. Plugins install via package.json now.
OK, I've created packages janus-mysql-auth and janus-mysql-userlist on npm and adjusted janus-server to use them. |
Dude, you're amazing! :) I should be able to give this a try within the hour 👍 |
Tested locally and I'm still able to connect. npm install the plugins and they run just fine as far as I can tell. the users table was created locally, already had access_statistics. The php script that is currently in the lobby displaying the user online is reading from the |
You should widen the ip column of access_statistics to 40 characters so it will fit IPv6 addresses. Use this query to see currently online users: "SELECT |
Ah, so that table is updated on an interval. Ok I didn't realize that. Thank you. Another question: If I wanted to authenticate against the VR Sites user base, I'd need to create my own authentication module, similar to janus-mysql-auth, and use that one instead, correct? |
Right, you would just need to modify the queries a bit. |
Ok, cool. I think this is okay to merge. Really great work @timschwartz! Thank you so much 😀 It'll take me a bit to deploy on VR Sites and get that php script changed up. I think once this and the config changes are merged, I'm going to cut our first release: v0.1.0 |
Plugin system with authentication and userlist plugin.
Cool. |
No description provided.