Hey, I am a novice and have recently started using ape. I want to setup a user authentication system as soon as a new user connects to the ape server. I want to integrate it with MySQL. I have checked out APE Server documentation. Just need a little help to get started. So far I have figured out this much. -> Use load() and core.start() to connect to ape. -> When the user enters username and password, pass this to ape server via (probably) CONNECT command(not sure what exactly to do). -> Use registerHookCmd to create a hook for CONNECT function. -> use MySQL connection class (http://www.ape-project.org/docs/server/ mysql/mysql.html) inside this hook and do the needful authentication. -> now when CONNECT command is invoked this hook will be called and on successful authentication via MySQL set some additional user properties, if authentication fails then return false and user won't be created.
Is this correct? What is this CONNECT command and how to use it? Do I have to pass parameters here and use them in my custom hook? Or do I create a new server side command use it instead for authentication? And if the authentication is successful then how do I create/add a new user? Is there an example somewhere apart from http://www.ape-project.org/wiki/index.php/Serverside_js_module_using_MySQL that can prove to be helpful? -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
