Where should I write this code in my controller for sso login?


(Hidetaka Ko) #1

sso = SsoWithDiscourse::Sso.new
session[:sso] = sso
redirect_to sso.request_url

https://github.com/gogo52cn/sso_with_discourse


(Matt Palmer) #2

I see you’ve opened an issue on the repo, too. That’s probably the best way to get help with this code.


(Hidetaka Ko) #3

Thanks for a reply. Do you know how to write?


(Matt Palmer) #4

I do not have the foggiest idea. My best guess would be somewhere in the “is this user logged in?” filter.