Google API Common Protos Client - Class JwtLocation (4.12.3)

Reference documentation and code samples for the Google API Common Protos Client class JwtLocation.

Specifies a location to extract JWT from an API request.

Generated from protobuf message google.api.JwtLocation

Namespace

Google \ Api

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ header
string

Specifies HTTP header name to extract JWT token.

↳ query
string

Specifies URL query parameter name to extract JWT token.

↳ cookie
string

Specifies cookie name to extract JWT token.

↳ value_prefix
string

The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

getHeader

Specifies HTTP header name to extract JWT token.

Returns
Type
Description
string

hasHeader

setHeader

Specifies HTTP header name to extract JWT token.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getQuery

Specifies URL query parameter name to extract JWT token.

Returns
Type
Description
string

hasQuery

setQuery

Specifies URL query parameter name to extract JWT token.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCookie

Specifies cookie name to extract JWT token.

Returns
Type
Description
string

hasCookie

setCookie

Specifies cookie name to extract JWT token.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getValuePrefix

The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type.

If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

Returns
Type
Description
string

setValuePrefix

The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type.

If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getIn

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: