Searched refs:token (Results 1 – 7 of 7) sorted by relevance
4 gRPC protobuf specification. This will use an OAuth token and TLS to7 First, you must generate a access token via the [OAuth playground]. From here13 Once, you have this token you must fetch your GCP project id which can be found18 GCP_AUTH_TOKEN="<access-token>" cargo run --bin gcp-client -- <project-id>
16 let token = std::env::var("GCP_AUTH_TOKEN").map_err(|_| { in main() localVariable24 let bearer_token = format!("Bearer {}", token); in main()
12 let token: MetadataValue<_> = "Bearer some-auth-token".parse()?; in main() localVariable15 req.metadata_mut().insert("authorization", token.clone()); in main()
34 let token: MetadataValue<_> = "Bearer some-secret-token".parse().unwrap(); in check_auth() localVariable37 Some(t) if token == t => Ok(req), in check_auth()
57 let token = CancellationToken::new(); in with_cancellation_handler() localVariable59 let _drop_guard = token.clone().drop_guard(); in with_cancellation_handler()65 _ = token.cancelled() => cancellation_future.await, in with_cancellation_handler()
816 // token](https://developers.google.com/identity/protocols/OpenIDConnect).820 // to be used for generating the OIDC token. The caller (for825 // Audience to be used when generating OIDC token. The audience claim829 // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3867 // If specified, Pub/Sub will generate and attach an OIDC JWT token as an
258 **Note**: The token passed to the `include_proto` macro (in our case "routeguide") is the name of