Module: OauthTokenVerifier
- Defined in:
- lib/oauth_token_verifier.rb,
lib/oauth_token_verifier/version.rb,
lib/oauth_token_verifier/providers/vk.rb,
lib/oauth_token_verifier/configuration.rb,
lib/oauth_token_verifier/providers/google.rb,
lib/oauth_token_verifier/providers/facebook.rb
Defined Under Namespace
Modules: Providers
Classes: Configuration, TokenVerifier
Constant Summary
collapse
- VERSION =
'0.1.5'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.configuration ⇒ Object
17
18
19
|
# File 'lib/oauth_token_verifier.rb', line 17
def configuration
@configuration ||= Configuration.new
end
|
13
14
15
|
# File 'lib/oauth_token_verifier.rb', line 13
def configure
yield configuration
end
|
Instance Method Details
#verify(provider_name, payload) ⇒ Object
9
10
11
|
# File 'lib/oauth_token_verifier.rb', line 9
def verify(provider_name, payload)
TokenVerifier.new(provider_name, payload[:token]).verify_token
end
|