Reference documentation and code samples for the Google API Common Protos Client class AuthenticationRule.
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.
Generated from protobuf message google.api.AuthenticationRule
Namespace
Google \ ApiMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ selector
↳ oauth
↳ allow_without_credential
bool
If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
↳ requirements
getSelector
Selects the methods to which this rule applies.
Refer to selector for syntax details.
string
setSelector
Selects the methods to which this rule applies.
Refer to selector for syntax details.
var
string
$this
getOauth
The requirements for OAuth credentials.
hasOauth
clearOauth
setOauth
The requirements for OAuth credentials.
$this
getAllowWithoutCredential
If true, the service accepts API keys without any other credential.
This flag only applies to HTTP and gRPC requests.
bool
setAllowWithoutCredential
If true, the service accepts API keys without any other credential.
This flag only applies to HTTP and gRPC requests.
var
bool
$this
getRequirements
Requirements for additional authentication providers.
setRequirements
Requirements for additional authentication providers.
$this