Closed christopheragnus closed 1 year ago
You can solve it by using this to build an authorization object:
Google::Auth::ServiceAccountCredentials.make_creds(
json_key_io: StringIO.new(Rails.application.credentials.android!.fetch(:service_account_credentials)),
scope: "https://www.googleapis.com/auth/androidpublisher",
)
I agree on @fabn suggestion. The README also states to look for details in https://github.com/googleapis/google-auth-library-ruby
Hey,
I'm using this library for Rails. Is there a way we can replace the
File.open()
underCandyCheck::PlayStore.authorization
withStringIO()
or the ability to pass in an hash of encrypted Rails credentials (to avoid storing credentials publicly in Rails)?