Struct gapi_grpc::google::api::AuthRequirement [−][src]
User-defined authentication requirements, including support for JSON Web Token (JWT).
Fields
provider_id: String
[id][google.api.AuthProvider.id] from authentication provider.
Example:
provider_id: bookstore_auth
audiences: String
NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components.
The list of JWT audiences. that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience “https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]” will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience “https://library-example.googleapis.com/google.example.library.v1.LibraryService”.
Example:
audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
Trait Implementations
impl Clone for AuthRequirement
[src][+]
impl Debug for AuthRequirement
[src][+]
impl Default for AuthRequirement
[src][+]
impl Message for AuthRequirement
[src][+]
impl PartialEq<AuthRequirement> for AuthRequirement
[src][+]
impl StructuralPartialEq for AuthRequirement
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthRequirement
impl Send for AuthRequirement
impl Sync for AuthRequirement
impl Unpin for AuthRequirement
impl UnwindSafe for AuthRequirement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,