google-auth-library-python icon indicating copy to clipboard operation
google-auth-library-python copied to clipboard

signer method for google.oauth2.credentials.Credentials

Open VJalili opened this issue 6 years ago • 0 comments

I am using the google.oauth2.credentials.Credentials type as the following:

import google.oauth2.credentials
credentials = google.oauth2.credentials.Credentials(access_token)

For signing blobs, I need to have a signer from the credentials object, similar to what is implemented for google.oauth2.service_account.Credentials:

https://github.com/googleapis/google-auth-library-python/blob/49a18c43a5b39615bad90d23ab33a105fb656a6a/google/oauth2/service_account.py#L330-L333

However, it does not seem google.oauth2.credentials.Credentials type has a signer property. Any thoughts on how I can obtain a signer for this type?

VJalili avatar Jun 23 '19 01:06 VJalili