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< ? requirements, Input<AuthRequirement> >String> ? selector}) -
Creates a new AuthenticationRule.
allowWithoutCredentialIf true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.oauthThe requirements for OAuth credentials.requirementsRequirements for additional authentication providers.selectorSelects 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