Class: OauthTokenVerifier::Providers::Google
- Inherits:
-
Object
- Object
- OauthTokenVerifier::Providers::Google
- Defined in:
- lib/oauth_token_verifier/providers/google.rb
Defined Under Namespace
Classes: BaseFields
Instance Method Summary collapse
-
#initialize ⇒ Google
constructor
A new instance of Google.
- #verify_token(context) ⇒ Object
Constructor Details
#initialize ⇒ Google
Returns a new instance of Google.
8 9 10 |
# File 'lib/oauth_token_verifier/providers/google.rb', line 8 def initialize @data_fields = Struct.new(*config.fields_mapping.values) end |
Instance Method Details
#verify_token(context) ⇒ Object
12 13 14 15 16 |
# File 'lib/oauth_token_verifier/providers/google.rb', line 12 def verify_token(context) uri = build_uri(context.token) response = check_response(uri) parse_response(response) end |