AuthenticationRuleResponse

data class AuthenticationRuleResponse(val allowWithoutCredential: Boolean, val oauth: OAuthRequirementsResponse, val requirements: List<AuthRequirementResponse>, val selector: String)

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.

Constructors

Link copied to clipboard
constructor(allowWithoutCredential: Boolean, oauth: OAuthRequirementsResponse, requirements: List<AuthRequirementResponse>, selector: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.

Link copied to clipboard

The requirements for OAuth credentials.

Link copied to clipboard

Requirements for additional authentication providers.

Link copied to clipboard

Selects the methods to which this rule applies. Refer to selector for syntax details.