class Authentication extends Message

Authentication defines the authentication configuration for an API.

Example for an API targeted for external use: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" requirements: provider_id: google_calendar_auth

Generated from protobuf message google.api.Authentication

Methods

__construct(array $data = NULL)

Constructor.

RepeatedField
getRules()

A list of authentication rules that apply to individual API methods.

$this
setRules(AuthenticationRule[]|RepeatedField $var)

A list of authentication rules that apply to individual API methods.

RepeatedField
getProviders()

Defines a set of authentication providers that a service supports.

$this
setProviders(AuthProvider[]|RepeatedField $var)

Defines a set of authentication providers that a service supports.

Details

at line 56
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Api\AuthenticationRule[]|\Google\Protobuf\Internal\RepeatedField $rules
      A list of authentication rules that apply to individual API methods.
      **NOTE:** All service configuration rules follow "last one wins" order.
@type \Google\Api\AuthProvider[]|\Google\Protobuf\Internal\RepeatedField $providers
      Defines a set of authentication providers that a service supports.

}

at line 68
RepeatedField getRules()

A list of authentication rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3;

Return Value

RepeatedField

at line 81
$this setRules(AuthenticationRule[]|RepeatedField $var)

A list of authentication rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3;

Parameters

AuthenticationRule[]|RepeatedField $var

Return Value

$this

at line 95
RepeatedField getProviders()

Defines a set of authentication providers that a service supports.

Generated from protobuf field repeated .google.api.AuthProvider providers = 4;

Return Value

RepeatedField

at line 107
$this setProviders(AuthProvider[]|RepeatedField $var)

Defines a set of authentication providers that a service supports.

Generated from protobuf field repeated .google.api.AuthProvider providers = 4;

Parameters

AuthProvider[]|RepeatedField $var

Return Value

$this