Skip to content

Document should mention every variable related to OmniAuth inside request.env #909

Closed

Description

@Looooong

Apparently, omniauth.params and omniauth.origin existed for years, but they are not documented. This tripped me up for a while finding the solution to some problems. These should be documented.

Activity

  1. aspiers commented on Nov 10, 2019

    @aspiers

    omniauth.origin is documented here:

    https://github.com/omniauth/omniauth/wiki/Saving-User-Location

    It's not easy to find, but at least it's there now.

    However omniauth.params is still not documented.

  2. aspiers commented on Nov 10, 2019

    @aspiers

    Worse, omniauth.params is unusable if you care about writing safe code. I've filed #975 to cover the details of that.

  3. added theissue type on Oct 17, 2026
  4. sferik commented on Oct 20, 2026

    @sferik
    Contributor

    Done in 16ec18a: the README now has a section listing every Rack env key OmniAuth sets: omniauth.auth, omniauth.origin, omniauth.params, and omniauth.strategy on the callback, plus omniauth.error, omniauth.error.type, and omniauth.error.strategy on failure.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions