Skip to content

Omniauth OAuth2 made a breaking change to callback_url #3

@jtokoph

Description

@jtokoph

This merged commit removed the callback_url method override: omniauth/omniauth-oauth2#70

It now defers to the base strategy callback_url which appends the current query string to the redirect_uri that is passed to the token request. This breaks the omniauth-twitch gem since twitch expects a redirect_uri that exactly matches the config

Two possible fixes:

  1. Pin the omniauth-oauth2 dependency to 1.3.1 or less:

    spec.add_runtime_dependency 'omniauth-oauth2', ['>= 1.1', '<= 1.3.1']
  2. Override the callback_url method in the strategy:

    def callback_url
      full_host + script_name + callback_path
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions