Single Sign On with Devise and OmniAuth

烂漫一生 提交于 2019-12-08 02:23:48

问题


There is a lot of information about using OmniAuth and Devise to be able to login to a webapp using facebook and twitter. However, I am trying to write my own OAuth provider and not use fb/twitter etc. (and failing to find examples).

I basically want to have two apps - a UserManager which has a table of users, and WebApp1 (and possible more in the future). I want a user to be able to go to WebApp1 and be redirected to the UserMAnager to be able to login, and then be redirected back to WebApp1. I don't want WebApp1 to have a table of users.

Can I have some pointers? At this stage I believe I need Devise in both apps, and OmniAuth in WebApp1, although I'm not 100% certain.


回答1:


Not sure if you still have this as a question.

There is a nice writeup that sounds very similar to your use case.

http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/

Best of luck



来源:https://stackoverflow.com/questions/7937634/single-sign-on-with-devise-and-omniauth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!