Sha256: e4ec110c679e2fc9efe1ad3bd6d65eb3967f62aae00d2c72e447a52446c9a02e
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
module Support module Macros module OAuth def token # fill me in if you add more tests here, use the rake task oauth:token, update vcr to :record => :all "ya29.AHES6ZREobGegWLc3tyxuuQAkKF7lg071UgpTeLe_4jTcV35uW8" end def client opts = { :authorize_url => 'https://accounts.google.com/o/oauth2/auth', :token_url => 'https://accounts.google.com/o/oauth2/token' } OAuth2::Client.new('779170787975.apps.googleusercontent.com', 'mbCISoZiSwyVQIDEbLj4EeEc', opts) do |builder| builder.use VCR::Middleware::Faraday builder.adapter :net_http end end def access_token OAuth2::AccessToken.new(client, token) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
legato-0.0.5 | spec/support/macros/oauth.rb |
legato-0.0.4 | spec/support/macros/oauth.rb |
legato-0.0.2 | spec/support/macros/oauth.rb |
legato-0.0.1 | spec/support/macros/oauth.rb |