Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AuthenticationRule

import type { AuthenticationRule } from "https://googleapis.deno.dev/v1/serviceconsumermanagement:v1.ts";

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.

interface AuthenticationRule {
allowWithoutCredential?: boolean;
requirements?: AuthRequirement[];
selector?: string;
}

§Properties

§
allowWithoutCredential?: boolean
[src]

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

§

The requirements for OAuth credentials.

§
requirements?: AuthRequirement[]
[src]

Requirements for additional authentication providers.

§
selector?: string
[src]

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