AuthenticationRule
class AuthenticationRule extends Message
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.
Protobuf type Google\Api\AuthenticationRule
Methods
No description
Selects the methods to which this rule applies.
Selects the methods to which this rule applies.
The requirements for OAuth credentials.
Whether to allow requests without a credential. The credential can be an OAuth token, Google cookies (first-party auth) or EndUserCreds.
Whether to allow requests without a credential. The credential can be an OAuth token, Google cookies (first-party auth) or EndUserCreds.
Requirements for additional authentication providers.
Requirements for additional authentication providers.
Details
at line 55
__construct()
at line 67
string
getSelector()
Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Generated from protobuf field string selector = 1;
at line 79
setSelector(string $var)
Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Generated from protobuf field string selector = 1;
at line 91
OAuthRequirements
getOauth()
The requirements for OAuth credentials.
Generated from protobuf field .google.api.OAuthRequirements oauth = 2;
at line 102
setOauth(OAuthRequirements $var)
The requirements for OAuth credentials.
Generated from protobuf field .google.api.OAuthRequirements oauth = 2;
at line 119
bool
getAllowWithoutCredential()
Whether to allow requests without a credential. The credential can be an OAuth token, Google cookies (first-party auth) or EndUserCreds.
For requests without credentials, if the service control environment is specified, each incoming request must be associated with a service consumer. This can be done by passing an API key that belongs to a consumer project.
Generated from protobuf field bool allow_without_credential = 5;
at line 135
setAllowWithoutCredential(bool $var)
Whether to allow requests without a credential. The credential can be an OAuth token, Google cookies (first-party auth) or EndUserCreds.
For requests without credentials, if the service control environment is specified, each incoming request must be associated with a service consumer. This can be done by passing an API key that belongs to a consumer project.
Generated from protobuf field bool allow_without_credential = 5;
at line 147
RepeatedField
getRequirements()
Requirements for additional authentication providers.
Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7;
at line 158
setRequirements(array|RepeatedField $var)
Requirements for additional authentication providers.
Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7;