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
Unable to pass prompt values to configure New Universal Login when using omniauth-rails_csrf_protection . The readme suggests passing these as query params when redirecting the user to Auth0, but when using the csrf protection gem, I'm using a POST request rather than a redirect.
What was the expected behavior?
I expect that I can pass prompt: { login: { description: 'Login to <OUR APPLICATION>' } } and see the New Universal Login reflect that copy change.
Reproduction
I've set the prompt key in the OmniAuth configuration as well as the query params for the POST request.
OmniAuth config
Set the prompt argument when configuring OmniAuth.
Attempt login and see the New Universal Login unchanged from its default.
Query String
Set the params for the link generated for login within railse. i.e. <%= link_to 'Login', '/auth/auth0', params: { <PROMPT CONFIG> }, method: :post %>
Attempt login and see the New Universal Login unchanged from its default.
Environment
Version of this library used: 2.4.1
Which framework are you using, if applicable: Rails 5
Thanks @finleye for raising this. Currently the library is pulling in the authorize parameters with Rack::Utils.parse_query(request.query_string), which only grabs the query from the URL. But it appears request.params it handled for us on POST and GET. I will open a PR to fix this.
Describe the problem
Unable to pass
prompt
values to configure New Universal Login when using omniauth-rails_csrf_protection. The readme suggests passing these as query params when redirecting the user to Auth0, but when using the csrf protection gem, I'm using a POST request rather than a redirect.
What was the expected behavior?
I expect that I can pass
prompt: { login: { description: 'Login to <OUR APPLICATION>' } }
and see the New Universal Login reflect that copy change.Reproduction
I've set the
prompt
key in the OmniAuth configuration as well as the query params for thePOST
request.OmniAuth config
prompt
argument when configuring OmniAuth.Query String
params
for the link generated for login within railse. i.e.<%= link_to 'Login', '/auth/auth0', params: { <PROMPT CONFIG> }, method: :post %>
Environment
The text was updated successfully, but these errors were encountered: