{"action":"created","issue":{"url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/3","labels_url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/3/comments","events_url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/3/events","html_url":"https://github.com/rbCAS/CASinoApp/issues/3","id":17638031,"number":3,"title":"Question about user creation","user":{"login":"Sylvain","id":38242,"avatar_url":"https://avatars.githubusercontent.com/u/38242?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylvain","html_url":"https://github.com/Sylvain","followers_url":"https://api.github.com/users/Sylvain/followers","following_url":"https://api.github.com/users/Sylvain/following{/other_user}","gists_url":"https://api.github.com/users/Sylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylvain/subscriptions","organizations_url":"https://api.github.com/users/Sylvain/orgs","repos_url":"https://api.github.com/users/Sylvain/repos","events_url":"https://api.github.com/users/Sylvain/events{/privacy}","received_events_url":"https://api.github.com/users/Sylvain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-08-05T14:40:02Z","updated_at":"2015-05-03T21:47:42Z","closed_at":"2014-01-15T14:09:33Z","body":"Hi Guys! \r\n\r\nFirst of all, thank you for this awesome work! I'm currently implementing CASinoApp for a project, and it's a joy to work with.\r\n\r\nI have a question about user registration. I would like to allow users that are redirected to the casino server to be able to register if they don't have an account yet (and to provide password recovery too). That way, when someone try to login on mywebsite.com, he is redirected to casinoserver.com and if he doesn't have an account, he can create one and then be redirected to mywebsite.com as a logged in user. \r\n\r\nI was wondering about the best way to do that : \r\n1. Integrate Devise into CASinoApp and mix the user creation and autorisation\r\n2. Create a separate Rails app for that. In that case, I don't know how to be signed-in into the CASino server after user registration. \r\n\r\nI'll be very glad about any tip or recommandation or link. I haven't found resource to help tackle this.\r\n\r\nMany thanks by advance."},"comment":{"url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/comments/98547406","html_url":"https://github.com/rbCAS/CASinoApp/issues/3#issuecomment-98547406","issue_url":"https://api.github.com/repos/rbCAS/CASinoApp/issues/3","id":98547406,"user":{"login":"diegobernardes","id":14483,"avatar_url":"https://avatars.githubusercontent.com/u/14483?v=3","gravatar_id":"","url":"https://api.github.com/users/diegobernardes","html_url":"https://github.com/diegobernardes","followers_url":"https://api.github.com/users/diegobernardes/followers","following_url":"https://api.github.com/users/diegobernardes/following{/other_user}","gists_url":"https://api.github.com/users/diegobernardes/gists{/gist_id}","starred_url":"https://api.github.com/users/diegobernardes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegobernardes/subscriptions","organizations_url":"https://api.github.com/users/diegobernardes/orgs","repos_url":"https://api.github.com/users/diegobernardes/repos","events_url":"https://api.github.com/users/diegobernardes/events{/privacy}","received_events_url":"https://api.github.com/users/diegobernardes/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T21:47:42Z","updated_at":"2015-05-03T21:47:42Z","body":"In my app CASino is working with devise, there is a nice post about this here: http://bentoncreation.com/post/74392403766/devise-cas-using-devise-cas-authenticatable-and\r\n\r\nSo far, so good. CASino respect my authentication logic, not only \"email\" and \"password\" and handle the logins. Devise in the other side do all the other stuffs like recover password, account activation, etc.. etc..\r\n\r\nThe only thing i need to do now is integrate with omniauth :smile:"}}