Closed novaforge closed 9 years ago
@dlindahl have you any idea on how to configure "on_single_sign_out" option ?
I would really appreciate any help you can provide ;)
@dlindahl My first issue about "Can't verify CSRF token authenticity" came from a error in logout_request method "Undefined namespace prefix: //saml:NameID".
I changed the code as bellow and error was gone. saml = Nokogiri::XML(@request.params['logoutRequest']) saml.remove_namespaces! name_id = saml.xpath('LogoutRequest/NameID').text sess_idx = saml.xpath('LogoutRequest/SessionIndex').text
Unfurtunalty after that, nothing append; my user is still log on. I have tried to declare the following but I don't know what to implement to delete user's session from its service ticket.
option :on_single_sign_out, Proc.new { |request| rack_input = request.env['rack.input'].read params = Rack::Utils.parse_query(rack_input, '&')
-->>> Dont know what to do here!
}
I guess I need to retrieve session from the ticket but as omniauth-cas doesn't use CAS client I have not access to it. Do you have any idea about it?
Thanks.
I got logout support working. I needed to do some changes; I am not a ruby dev so the following needs to be cleaned :
You can consider this issue closed.
EDIT : I cannot attach the patch files for activerecord-session or omniauth-cas, feel free to contact me if you need them.
hi,i encounter the problem : when logout,gitlab doesn't redirect to cas to logout . anyone could help me ?
@novaforge Hey! I sent you an email because I need those patched files, or perhaps a more straight forward explanation on how you made this work. Thanks in Advance!
@novaforge @samgville do you have a patched version with the activerecord-session embedded to an amniauth-cas version ? Because with GEM you can point to a specific github repository when needed, so it's easy to fork and fix in that way. In my mind this option should be provided with omniauth-cas with an option that enable the active record. I can try to make this version, but if you have already the patch could you do that or provide me the patchs ? Thanks in advance.
Hi, I'm trying to use omniauth-cas v1.1.0 with Gitlab 7.3.1 and I got some troubles on CAS Logout.
Firstly, Gitlab does not work yet with omniauth 1.2.0, so i had to downgrade the dependence to omniauth 1.1.0 into omniauth-cas.gemspec.
Secondly, I got any trouble to login with CAS, but on the log out using /cas/logout, omniauth-cas crash because I do not know how to use option "on_single_sign_out" :
providers:
Of course, I'm new to Ruby ;)
Cheers,