You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can get a token, but this needs scope. I wanted to check if it is possible to generate a token without the scope as well like we do with gcloud auth command below.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I want to generate a authbearer token using a service account ruby library just like we do it using the below code:
gcloud auth application-default print-access-token
I have written a simple piece of code:
require 'googleauth'
authorizer = Google::Auth::ServiceAccountCredentials.make_creds(json_key_io: File.open('sa.json'))
token=authorizer.fetch_access_token!
I can get a token, but this needs scope. I wanted to check if it is possible to generate a token without the scope as well like we do with gcloud auth command below.
Thanks.
The text was updated successfully, but these errors were encountered: