File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
google-apis-core/lib/google/api_client/auth Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ class Storage
3838 #
3939 # @param [Object] store
4040 # Storage object
41+ #
42+ # @note Warning: This class is part of a deprecated credentials flow.
43+ # Providing an unvalidated credential configuration to Google APIs can
44+ # compromise the security of your systems and data. Use
45+ # google-auth-library-ruby instead.
4146 def initialize ( store )
4247 @store = store
4348 @authorization = nil
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ def initialize(path)
3737
3838 ##
3939 # Attempt to read in credentials from the specified file.
40+ #
41+ # @note Warning: This method is part of a deprecated credentials flow.
42+ # Providing an unvalidated credential configuration to Google APIs can
43+ # compromise the security of your systems and data. Use
44+ # google-auth-library-ruby instead.
4045 def load_credentials
4146 open ( path , 'r' ) { |f | JSON . parse ( f . read ) }
4247 rescue
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ def initialize(redis, key = nil)
3737
3838 ##
3939 # Attempt to read in credentials from redis.
40+ #
41+ # @note Warning: This method is part of a deprecated credentials flow.
42+ # Providing an unvalidated credential configuration to Google APIs can
43+ # compromise the security of your systems and data. Use
44+ # google-auth-library-ruby instead.
45+ #
4046 # @return [Hash]
4147 def load_credentials
4248 credentials = redis . get redis_credentials_key
You can’t perform that action at this time.
0 commit comments