Created
March 23, 2013 07:33
-
-
Save zeroeth/5226822 to your computer and use it in GitHub Desktop.
dirty fix for removing ports from rails redirects for Oauth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module OmniAuth | |
| module Strategy | |
| def full_host | |
| uri = URI.parse(request.url) | |
| uri.path = '' | |
| uri.query = nil | |
| uri.port = (uri.scheme == 'https' ? 443 : 80) | |
| uri.to_s | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment