Configuration for an authentication provider, including support for JSON Web Token (JWT).
Generated from protobuf message google.api.AuthProvider
Methods |
public __construct( $data = NULL) Constructor.
|
public getAudiences() The list of JWT audiences. that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, JWTs with audiences:
https://library-example.googleapis.com/google.example.library.v1.LibraryService
Generated from protobuf field string audiences = 4;
|
public getAuthorizationUrl() Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. Generated from protobuf field string authorization_url = 5;
|
public getId() The unique identifier of the auth provider. It will be referred to by
Example: "bookstore_auth". Generated from protobuf field string id = 1;
|
public getIssuer() Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com Generated from protobuf field string issuer = 2;
|
public getJwksUri() URL of the provider's public key set to validate signature of the JWT. See OpenID Discovery. Optional if the key set document:
Generated from protobuf field string jwks_uri = 3;
|
public getJwtLocations() Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations:
Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6;
|
public setAudiences( $var) The list of JWT audiences. that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, JWTs with audiences:
https://library-example.googleapis.com/google.example.library.v1.LibraryService
Generated from protobuf field string audiences = 4;
|
public setAuthorizationUrl( $var) Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. Generated from protobuf field string authorization_url = 5;
|
public setId( $var) The unique identifier of the auth provider. It will be referred to by
Example: "bookstore_auth". Generated from protobuf field string id = 1;
|
public setIssuer( $var) Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com Generated from protobuf field string issuer = 2;
|
public setJwksUri( $var) URL of the provider's public key set to validate signature of the JWT. See OpenID Discovery. Optional if the key set document:
Generated from protobuf field string jwks_uri = 3;
|
public setJwtLocations( $var) Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations:
Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6;
|
Properties |
protected $audiences = '' The list of JWT audiences. that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, JWTs with audiences:
https://library-example.googleapis.com/google.example.library.v1.LibraryService
Generated from protobuf field string audiences = 4; |
protected $authorization_url = '' Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. Generated from protobuf field string authorization_url = 5; |
protected $id = '' The unique identifier of the auth provider. It will be referred to by
Example: "bookstore_auth". Generated from protobuf field string id = 1; |
protected $issuer = '' Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com Generated from protobuf field string issuer = 2; |
protected $jwks_uri = '' URL of the provider's public key set to validate signature of the JWT. See OpenID Discovery. Optional if the key set document:
Generated from protobuf field string jwks_uri = 3; |
Methods |
Properties |
private $jwt_locations = NULL Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations:
Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; |