Commit edd3fc19 authored by o's avatar o
Browse files

fix logout

parent 5e394c01
......@@ -8,6 +8,10 @@ class SamlLoginController < LoginController
render 'successful_login'
end
def url2id(url)
"#{URI(url).scheme}://#{URI(url).host}"
end
def load_custom_params_new
session[:saml_request] ||= begin
inp = params[:SAMLRequest]
......@@ -22,7 +26,7 @@ class SamlLoginController < LoginController
res = ApiBackend::sp_info(@saml_request)
if res && res['result'] == 'success'
{name: res['sp']['issuer'].gsub(/(http|https):\/\//,""),
url: res['sp']['issuer']}
url: url2id(res['sp']['issuer'])}
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment