get token (oauth bearer) utility for Apigee X

Hi Team,

could you help me to find the way to get bearer token to run maven apigee X plugin commands.

I see get token working for Apigee edge , but it is very hard to find a similar solution for Apigee X

Thanks & Regards,

RP

Solved Solved
0 1 120
1 ACCEPTED SOLUTION

HI @Ranganath Parvataneni

You should install gcloud SDK on your laptop. Once done you can run the following commands on your laptop to get a token

  1. Run "gcloud auth login"
  2. Run "gcloud auth print-access-token". This should print an access token

You can also run the mvn command directly - "mvn clean install -P{profile} -Dbearer=$(gcloud auth print-access-token)"

View solution in original post

1 REPLY 1

HI @Ranganath Parvataneni

You should install gcloud SDK on your laptop. Once done you can run the following commands on your laptop to get a token

  1. Run "gcloud auth login"
  2. Run "gcloud auth print-access-token". This should print an access token

You can also run the mvn command directly - "mvn clean install -P{profile} -Dbearer=$(gcloud auth print-access-token)"