New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

omniauth-strategies-passthrough

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-strategies-passthrough

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= omniauth-strategies-passthrough

An OmniAuth strategy that passes request params straight through the middleware.

This strategy allows you to pass auth hash values directly to an auth endpoint and forwards them directly to your callback(s). The end goal of this is to provide more flexibility when writing login helpers in development/test environments while still utilizing your OmniAuth callback(s).

== Installation

Install the gem and add to the application's Gemfile by executing:

bundle add omniauth-strategies-passthrough

If bundler is not being used to manage dependencies, install the gem by executing:

gem install omniauth-strategies-passthrough

== Usage

Include the passthrough strategy in development/test environments as you would with any other OmniAuth strategy. NEVER use it in a production environment.

Once included, any POST request to /auth/passthrough will pass through any uid and info params to your omniauth callback.

request

post '/auth/passthrough', params: { uid: 'my-uid', info: { email: 'my-email@example.com', first_name: 'My', last_name: 'Name' } }

callback

request.env['omniauth.auth'].uid # => 'my-uid' request.env['omniauth.auth'].info.email # => 'my-email@example.com' request.env['omniauth.auth'].info.first_name # => 'My' request.env['omniauth.auth'].info.last_name # => 'Name'

== Development

  • Run bin/setup to install dependencies.
  • Run bin/rake appraisal spec to run the tests.
  • Run bin/rake rubocop to run the linter.
  • Run bin/console for an interactive prompt that will allow you to experiment.

== Contributing

Bug reports and pull requests are welcome on {GitHub}[https://github.com/benmelz/omniauth-strategies-passthrough].

== License

The gem is available as open source under the terms of the {MIT License}[https://opensource.org/licenses/MIT].

FAQs

Package last updated on 29 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc