Commit Graph

16 Commits

Author SHA1 Message Date
Daniel Azuma b314e0df2b
Ensure ClientSecrets uses googleauth extensions (#814) 2019-07-29 10:40:52 -07:00
Graham Paye ee49501c6c
fix windows test failures (#736) 2018-11-26 13:22:07 -08:00
Michael Wawra 74bbfa2251 Allow symbols for credential flow
Because of my production environment, adding a JSON file a little bit of
a pain. However: using the intializer it's readily possible to set my
credentials manually from my environment. I noticed that while all the
credential details can be either a String or a Symbol, the 'flow' (i.e.,
`web`) **must** be a string.

This allows it to accept both a string and a symbol.
2016-04-26 22:41:32 +01:00
James Healy 4b9a63c086 replace multi_json dependency with regular stdlib JSON
JSON has been part of the ruby stdlib since 1.9.0 (see
https://github.com/ruby/ruby/commit/af1c4167), and the latest version of
google-api-client requires ruby 2.0 or better so we can assume it's available
2016-02-25 13:27:33 +11:00
Steve Bazyl 9e738cc82a Mark auth classes as deprecated 2015-12-14 17:42:17 -08:00
Ruslan Korolev 19ead52094 add more detail specs for client_secrets.rb + fix docs 2015-08-19 21:03:53 +03:00
Steven Bazyl 2622ebf8dc Add minimal tests for ClientSecrets 2014-12-16 13:47:26 -08:00
Abdelkader Boudih 2ba98c3332 Dropped uuidtools 2014-10-08 12:03:28 +00:00
Abdelkader Boudih e313235b55 Replace deprecated method that cause ruby warnings File.exit? 2014-10-08 12:02:36 +00:00
Sergio Gomes d1fe3c2277 Small fixes to client secrets:
- Load automatically with a "require 'google/api_client'"
- Allow for signet >= 0.4.0
2013-08-06 18:46:11 +01:00
Steven Bazyl 1f0ea6338e Remove stray output to STDOUT 2013-01-02 12:55:52 -08:00
Steven Bazyl 1fca089d62 Mostly doc updates, +remove support for method as string 2012-10-10 14:28:45 -06:00
Bob Aman 2c567fd720 Added the ability to create an authorization object from client secrets. 2012-10-05 12:07:42 +03:00
Bob Aman 11155d3c39 Backwards compatibility for MultiJson. 2012-08-30 12:15:59 +03:00
Bob Aman c651d69674 Updated to avoid deprecation of encode and decode methods in multi_json gem. 2012-04-24 14:39:25 +03:00
Bob Aman 8eea813905 Initial pass at parsing and handling client_secrets.json. 2012-03-02 17:06:08 +01:00