class Google::Apis::ServiceusageV1::JwtLocation
Specifies a location to extract JWT from an API request.
Attributes
Specifies HTTP header name to extract JWT token. Corresponds to the JSON property `header` @return [String]
Specifies URL query parameter name to extract JWT token. Corresponds to the JSON property `query` @return [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. Corresponds to the JSON property `valuePrefix` @return [String]
Public Class Methods
# File lib/google/apis/serviceusage_v1/classes.rb, line 2308 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/serviceusage_v1/classes.rb, line 2313 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