Class: Lazy::Auth
- Inherits:
-
Object
- Object
- Lazy::Auth
- Defined in:
- lib/lazy/auth.rb,
lib/lazy/auth/version.rb
Constant Summary collapse
- VERSION =
'0.1.1'
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
9 10 11 |
# File 'lib/lazy/auth.rb', line 9 def config OpenStruct.new ConfigFor.new.google end |
#signet ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lazy/auth.rb', line 13 def signet client = Signet::OAuth2::Client.new( authorization_uri: 'https://accounts.google.com/o/oauth2/auth', token_credential_uri: 'https://oauth2.googleapis.com/token', client_id: config.client_id, client_secret: config.client_secret, scope: config.scope, redirect_uri: config.redirect_uri ) end |