Gist 706255
✓ Published0🌍 Public
XXXX
Last edited Nov 19, 2010
Created on Nov 19, 2010
This example shows a server-side Ruby on Rails configuration that adjusts OmniAuth’s URL generation for production environments. It overrides the `full_host` method inside the `OmniAuth::Strategy` module to strip the path and query from the incoming request URL, force the port to 443 for HTTPS or 80 for HTTP, and return the cleaned absolute URI. The code uses Ruby’s `URI.parse` and the `request.url` helper to rebuild the host string. No data visualization is present; the snippet is purely an authentication-related code patch.
AI-generated description