-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Apply omniauth #133
Apply omniauth #133
Conversation
xdite
commented
Feb 12, 2013
- use omniauth-openid to replace handcraft openid
- make openid login much easy to maitain
- use omniauth-facebook to replace handcraft facebook-auth
- use omniauth-twitter to replace handcraft twitter-auth
note, the redis point is kind of critical for us as we are hosted on multiple machines, I am pretty sure we have some prd bugs now due to redis missing. |
Is there any way we can add tests for any of this, I really worry about regressions and the original was so poorly tested (ie as in not tested at all) |
Here are some resources
I may add it tomorrow. cause I am in Chinese vacation now... |
no worries, btw, now that you added omni auth some future idea 1- clean it up so both facebook and twitter go via omniauth Appreciate all the good work, thank you |
no problem. And just curious about why would you use handcraft authentication system instead |
Facebook wouldn't let unconfirmed user to login 3rd party app http://d.pr/i/eG8J |
facebook & twitter are already moved to users/omniauth_callbacks |
hit a problem, when I use
:/ |
pr can't be merged anymore, also, can you rebase / squash commit ? are you running under thin, we have a fairly strong EM dependency |
implement omniauth-facebook / omniauth-twitter
I already squash the commit and rebase the master |
Still seeing, OpenID::Store::Filesystem.new can you use a RedisStore ? |
done |
I approve of this PR @eviltrout .. only thing is its a bit late now and we need to watch stuff shortly after its deployed for a few hours, can you pull / deploy in your AM ? |
Merged, I'll test on our test environment before deploying to production later today. |
Also thanks a lot @xdite 🐟 |
👍 OmniAuth will allow for easier integration to other systems, like a corporate LDAP. Thanks @xdite. |
@xdite why is this https://github.com/discourse/discourse/blob/master/config/initializers/omniauth.rb#L4-L10 looks really dangerous to me |
Ah. I forget to change. This value is for dev only. |
related discussion omniauth/omniauth#404 |
can you put a PR in place that with a comment and if Rails.env == 'development' protecting us there? |
|
I guess, maybe just leave it all commented out for now with some pointers to tricks needed to test this |
cleaned it up here: 4ccb735 |
Was LDAP support ever enabled? http://meta.discourse.org/t/ldap-support/974 |