Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/auth/oauth_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,10 @@ def authorize_params
end
end
end

def callback_url
options[:redirect_uri] || (full_host + script_name + callback_path)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, should call super instead of (full_host + script_name + callback_path)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also seems omniauth-oauth2 has some problems. Anyway, it's not relevant here. omniauth/omniauth-oauth2#100

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, should call super instead of (full_host + script_name + callback_path)

not working... just tested with my branch https://github.com/gdong42/discourse-chinese-localization-pack/tree/temp
not sure if I'm using super in the correct way, though - I'm quite new to Ruby
I guess it might be due to the super callback_url was removed in the change that the pull request you posted was trying to add back

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok...I don't get their problem. I'm happy to merge this. Thank you!

end

end