Skip to content

How to pass extra parameters? #189

Closed
@chamnap

Description

@chamnap

I'm digging and trying to find solutions for several hours, but i got no luck. I hope I can have answer here.

I checked the gem 'omniauth', we can pass extra parameters like this:
/auth/facebook?listing_id=kh35887

And inside the callback phase, we can retrieve this parameter by calling #params or request.env['omniauth.params'], https://github.com/intridea/omniauth/blob/fc304abe2b56cb6efeff87efdc50d120f4d8e1c0/lib/omniauth/strategy.rb#L225.

/auth/facebook/callback?listing_id=kh35887

I tried this with the gem omniauth-twitter, and it works as expected. However, omniauth-facebook doesn't work with this extra parameters.

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