class OmniAuth::Strategies::Oidc

def resolve_endpoint_from_host(host, endpoint)

Strips port and host from strings with OIDC endpoints
def resolve_endpoint_from_host(host, endpoint)
  start_index = endpoint.index(host) + host.length
  endpoint = endpoint[start_index..]
  endpoint = "/#{endpoint}" unless endpoint.start_with?("/")
  endpoint
end