module RackOAuth2ClientPatch
Public Instance Methods
Source
# File lib/rack_oauth2_client_patch.rb, line 10 def absolute_uri_for(*args) return args.first if args.first.starts_with?(/^https?:/) super(*args) end
absolute_uri_for strips out the port if itβs the default, e.g. host.com:443 becomes host.com. CIS2, however, uses URLs with the port and requires that we match it exactly.
Generally, if a passed-in URL has a scheme (http(s)) then we can assume itβs already an absolute uri.
Calls superclass method