Skip to content

Why isn't "full_host" configurable through the options hash? #835

Closed

Description

@niuage

I'm just wondering why a method like path_prefix is defined as:

def path_prefix
  options[:path_prefix] || OmniAuth.config.path_prefix
end

and takes into account the prefix_path passed as an option, but the full_host method doesn't check for the presence of the full_host key in the options hash, and just relies on OmniAuth.config.full_host.

Both are used to build the callback_url, although it's not the only use of these 2 methods.

Activity

  1. changed the title [-]Why isn't "full_path" configurable through the options hash?[/-] [+]Why isn't "full_host" configurable through the options hash?[/+] on Feb 2, 2016
  2. added theissue type on Oct 17, 2026
  3. sferik commented on Oct 20, 2026

    @sferik
    Contributor

    Added in 39e44e4: strategies now take a full_host option (a string or a proc that takes the env), which takes precedence over OmniAuth.config.full_host. This will ship in 2.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions