You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I launched the gollum&omnigollum&omniauth-ldap via unicorn way: unicorn -c unicorn.rb -E production. Test the login failure scenario.
And found omniauth.origin is nil:
app.beforeoptions[:route_prefix] + '/auth/failure'douser_deauth@title='Authentication failed'@subtext="Provider did not validate your credentials (#{params[:message]}) - please retry or choose another login service"@auth_params="?origin=#{CGI.escape(request.env['omniauth.origin'])}"unlessrequest.env['omniauth.origin'].nil?ifrequest.env['omniauth.origin'].nil?puts'Noop, why omniauth.origin is nil??'endputs"auth failure #{@auth_params}"show_errorend
Which led loginurl be set incorrect.
However, the omniauth.origin was set right in front web page if rack was in development environment.
How to handle this problem? thanks.
The text was updated successfully, but these errors were encountered:
I launched the
gollum&omnigollum&omniauth-ldap
via unicorn way:unicorn -c unicorn.rb -E production
. Test the login failure scenario.And found omniauth.origin is nil:
Which led
loginurl
be set incorrect.However, the
omniauth.origin
was set right in front web page if rack was in development environment.How to handle this problem? thanks.
The text was updated successfully, but these errors were encountered: