class Google::Apis::ServicenetworkingV1::JwtLocation

Specifies a location to extract JWT from an API request.

Attributes

header[RW]

Specifies HTTP header name to extract JWT token. Corresponds to the JSON property `header` @return [String]

query[RW]

Specifies URL query parameter name to extract JWT token. Corresponds to the JSON property `query` @return [String]

value_prefix[RW]

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. Corresponds to the JSON property `valuePrefix` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicenetworking_v1/classes.rb, line 2027
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicenetworking_v1/classes.rb, line 2032
def update!(**args)
  @header = args[:header] if args.key?(:header)
  @query = args[:query] if args.key?(:query)
  @value_prefix = args[:value_prefix] if args.key?(:value_prefix)
end