Class OmniAuth::Strategies::OAuth2
In: lib/omniauth/strategies/oauth2.rb
Parent: Object

Authentication strategy for connecting with APIs constructed using the [OAuth 2.0 Specification](tools.ietf.org/html/draft-ietf-oauth-v2-10). You must generally register your application with the provider and utilize an application id and secret in order to authenticate using OAuth 2.0.

Methods

Included Modules

OmniAuth::Strategy

Classes and Modules

Class OmniAuth::Strategies::OAuth2::CallbackError

Attributes

client_id  [RW]  The `OAuth2::Client` for this strategy.
client_options  [RW]  The `OAuth2::Client` for this strategy.
client_secret  [RW]  The `OAuth2::Client` for this strategy.
options  [RW]  The options passed in to the strategy.

Public Class methods

@param [Rack Application] app standard middleware application argument @param [String] name the name for this provider to be used in its URL, e.g. `/auth/name` @param [String] client_id the client/application ID of this provider @param [String] client_secret the client/application secret of this provider @param [Hash] options that will be passed through to the OAuth2::Client (see [oauth2 docs](rubydoc.info/gems/oauth2))

Public Instance methods

Protected Instance methods

[Validate]