• Home
  • Raw
  • Download

Lines Matching +full:google +full:- +full:cloud +full:- +full:examples

1 Google Authentication Example
4 This example illustrates how to access [Google APIs](https://cloud.google.com/apis/docs/overview) v…
5 open source [Google API libraries](https://github.com/googleapis) using
6 [Google authentication](https://developers.google.com/identity/protocols/OAuth2), specifically the
7 …eCredentials](https://github.com/googleapis/google-auth-library-java/blob/master/oauth2_http/java/…
10 The example requires grpc-java to be pre-built. Using a release tag will download the relevant bina…
14 Please follow the [steps](./README.md#to-build-the-examples) to build the examples. The build creat…
15 the script `google-auth-client` in the `build/install/examples/bin/` directory which can be
18 The example uses [Google PubSub gRPC API](https://cloud.google.com/pubsub/docs/reference/rpc/) to g…
22 1. Create or use an existing [Google Cloud](https://cloud.google.com) account. In your account, you…
25 2. Use an existing project, or [create a project](https://pantheon.corp.google.com/projectcreate),
26 say `Google Auth Pubsub example`. Note down the project ID of this project - say `xyz123` for this …
27 Use the project drop-down from the top or use the cloud shell command
33 3. Unless already enabled, [enable the Cloud Pub/Sub API for your project](https://console.develope…
36 4. Go to the [GCP Pub/Sub console](https://pantheon.corp.google.com/cloudpubsub). Create a couple o…
43 5. You will now need to set up [authentication](https://cloud.google.com/docs/authentication/) and a
44 [service account](https://cloud.google.com/docs/authentication/#service_accounts) in order to access
45 Pub/Sub via gRPC APIs as described [here](https://cloud.google.com/iam/docs/creating-managing-servi…
46 Assign the [role](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts) `Project ->…
51 …te the service account](https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-s…
52 and [the JSON file](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#iam-se…
54 #### To build the examples
56 …ing code generation plugin](../../COMPILING.md) (Only need this step for non-released versions, e.…
65 `google-auth-client` requires two command line arguments for the location of the JSON file and the …
68 USAGE: GoogleAuthClient <path-to-JSON-file> <project-ID>
71 The first argument <path-to-JSON-file> is the location of the JSON file you created in step 5 above.
72 The second argument <project-ID> is the project ID in the form "projects/xyz123" where "xyz123" is
77 ./build/install/example-gauth/bin/google-auth-client /path/to/JSON/file projects/xyz123
90 …ing code generation plugin](../../COMPILING.md) (Only need this step for non-released versions, e.…
96 …$ mvn exec:java -Dexec.mainClass=io.grpc.examples.googleAuth.GoogleAuthClient -Dexec.args="/path/t…
102 $ bazel build :google-auth-client
104 $ ../bazel-bin/google-auth-client /path/to/JSON/file projects/xyz123