AuthenticationRule class

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

AuthenticationRule({Input<bool>? allowWithoutCredential, Input<OAuthRequirements>? oauth, Input<List<AuthRequirement>>? requirements, Input<String>? selector})
Creates a new AuthenticationRule. 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 for syntax details.
const
AuthenticationRule.fromMap(Map<String, dynamic> map)
factory

Properties

allowWithoutCredential → Input<bool>?
If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
final
hashCode → int
The hash code for this object.
no setterinherited
oauth → Input<OAuthRequirements>?
The requirements for OAuth credentials.
final
requirements → Input<List<AuthRequirement>>?
Requirements for additional authentication providers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → Input<String>?
Selects the methods to which this rule applies. Refer to selector for syntax details.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited