Home
last modified time | relevance | path

Searched refs:token (Results 1 – 7 of 7) sorted by relevance

/tonic/examples/src/gcp/
H A DREADME.md4 gRPC protobuf specification. This will use an OAuth token and TLS to
7 First, you must generate a access token via the [OAuth playground]. From here
13 Once, you have this token you must fetch your GCP project id which can be found
18 GCP_AUTH_TOKEN="<access-token>" cargo run --bin gcp-client -- <project-id>
H A Dclient.rs16 let token = std::env::var("GCP_AUTH_TOKEN").map_err(|_| { in main() localVariable
24 let bearer_token = format!("Bearer {}", token); in main()
/tonic/examples/src/authentication/
H A Dclient.rs12 let token: MetadataValue<_> = "Bearer some-auth-token".parse()?; in main() localVariable
15 req.metadata_mut().insert("authorization", token.clone()); in main()
H A Dserver.rs34 let token: MetadataValue<_> = "Bearer some-secret-token".parse().unwrap(); in check_auth() localVariable
37 Some(t) if token == t => Ok(req), in check_auth()
/tonic/examples/src/cancellation/
H A Dserver.rs57 let token = CancellationToken::new(); in with_cancellation_handler() localVariable
59 let _drop_guard = token.clone().drop_guard(); in with_cancellation_handler()
65 _ = token.cancelled() => cancellation_future.await, in with_cancellation_handler()
/tonic/examples/proto/googleapis/google/pubsub/v1/
H A Dpubsub.proto816 // token](https://developers.google.com/identity/protocols/OpenIDConnect).
820 // to be used for generating the OIDC token. The caller (for
825 // Audience to be used when generating OIDC token. The audience claim
829 // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
867 // If specified, Pub/Sub will generate and attach an OIDC JWT token as an
/tonic/examples/
H A Drouteguide-tutorial.md258 **Note**: The token passed to the `include_proto` macro (in our case "routeguide") is the name of