com.google.api.auth.AuthenticationRule
See theAuthenticationRule companion object
final case class AuthenticationRule(selector: String, oauth: Option[OAuthRequirements], allowWithoutCredential: Boolean, requirements: Seq[AuthRequirement], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[AuthenticationRule]
Authentication rules for the service.
By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request.
If a method doesn't have any auth requirements, request credentials will be ignored.
Attributes
- allowWithoutCredential
If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
- oauth
The requirements for OAuth credentials.
- requirements
Requirements for additional authentication providers.
- selector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
- Companion:
- object
- Source:
- AuthenticationRule.scala
- Graph
- Supertypes
- trait Updatable[AuthenticationRule]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any