We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AFAIK, it's currently impossible to easily set callback dynamically per call.
I propose passing callback_path transparently from request phase to callback phase. Below is a monkey patch.
Thoughts?
module OmniAuth module Strategies class OAuth2 alias_method :original_request_phase, :request_phase def request_phase session['omniauth.callback_path'] = request.params['callback_path'] original_request_phase end alias_method :original_callback_phase, :callback_phase def callback_phase session.delete 'omniauth.callback_path' original_callback_phase end def callback_path @callback_path ||= session['omniauth.callback_path'] || super end end end end
The text was updated successfully, but these errors were encountered:
Do you have any ideas for adding these hooks in the strategy? I would be happy to accept a pull request.
Sorry, something went wrong.
Allowing the redirect_uri to be set from user input probably opens up account theft attacks, for example via URL fragments in 302 redirects.
redirect_uri
No branches or pull requests
AFAIK, it's currently impossible to easily set callback dynamically per call.
I propose passing callback_path transparently from request phase to callback phase. Below is a monkey patch.
Thoughts?
The text was updated successfully, but these errors were encountered: