Module: OAuth2

Defined in:
lib/oauth2.rb,
lib/oauth2/error.rb,
lib/oauth2/client.rb,
lib/oauth2/version.rb,
lib/oauth2/response.rb,
lib/oauth2/access_token.rb,
lib/oauth2/authenticator.rb,
lib/oauth2/strategy/base.rb,
lib/oauth2/strategy/implicit.rb,
lib/oauth2/strategy/password.rb,
lib/oauth2/strategy/assertion.rb,
lib/oauth2/strategy/auth_code.rb,
lib/oauth2/strategy/client_credentials.rb

Overview

The namespace of this library

Defined Under Namespace

Modules: Strategy, Version Classes: AccessToken, Authenticator, Client, Error, Response

Constant Summary collapse

DEFAULT_CONFIG =
SnakyHash::SymbolKeyed.new(silence_extra_tokens_warning: false)
ConnectionError =
Class.new(Faraday::ConnectionFailed)
TimeoutError =
Class.new(Faraday::TimeoutError)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



30
31
32
# File 'lib/oauth2.rb', line 30

def config
  @config
end

Class Method Details

.configure {|@config| ... } ⇒ Object

Yields:



32
33
34
# File 'lib/oauth2.rb', line 32

def configure
  yield @config
end