Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oa-oauth

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oa-oauth

  • 0.3.2
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

= OmniAuth::OAuth

OAuth 1.0 and 2.0 strategies for the OmniAuth gem.

== Installation

To get just OAuth functionality:

gem install oa-oauth

For the full auth suite:

gem install omniauth

== Stand-Alone Example

Use the strategy as a middleware in your application:

require 'omniauth/oauth'

use OmniAuth::Strategies::Twitter, 'consumer_key', 'consumer_secret'

Then simply direct users to '/auth/twitter' to have them authenticate via Twitter.

== OmniAuth Builder

If you want to allow multiple providers, use the OmniAuth Builder:

require 'omniauth/oauth'

use OmniAuth::Builder do
  provider :twitter, 'consumer_key', 'consumer_secret'
  provider :facebook, 'client_id', 'client_secret'
end

FAQs

Package last updated on 20 Oct 2011

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