Class: Google::Apis::ComputeAlpha::Jwt
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::Jwt
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
[Deprecated] JWT configuration for origin authentication. JWT configuration for origin authentication.
Instance Attribute Summary collapse
-
#audiences ⇒ Array<String>
A JWT containing any of these audiences will be accepted.
-
#issuer ⇒ String
Identifies the issuer that issued the JWT, which is usually a URL or an email address.
-
#jwks_public_keys ⇒ String
The provider's public key set to validate the signature of the JWT.
-
#jwt_headers ⇒ Array<Google::Apis::ComputeAlpha::JwtHeader>
jwt_headers and jwt_params define where to extract the JWT from an HTTP request.
-
#jwt_params ⇒ Array<String>
This field is set if JWT is sent in a query parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Jwt
constructor
A new instance of Jwt.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Jwt
Returns a new instance of Jwt.
24205 24206 24207 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audiences ⇒ Array<String>
A JWT containing any of these audiences will be accepted. The service name
will be accepted if audiences is empty. Examples: bookstore_android.apps.
googleusercontent.com, bookstore_web.apps.googleusercontent.com
Corresponds to the JSON property audiences
24171 24172 24173 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24171 def audiences @audiences end |
#issuer ⇒ String
Identifies the issuer that issued the JWT, which is usually a URL or an email
address. Examples: https://securetoken.google.com, 1234567-compute@developer.
gserviceaccount.com
Corresponds to the JSON property issuer
24178 24179 24180 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24178 def issuer @issuer end |
#jwks_public_keys ⇒ String
The provider's public key set to validate the signature of the JWT.
Corresponds to the JSON property jwksPublicKeys
24183 24184 24185 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24183 def jwks_public_keys @jwks_public_keys end |
#jwt_headers ⇒ Array<Google::Apis::ComputeAlpha::JwtHeader>
jwt_headers and jwt_params define where to extract the JWT from an HTTP
request. If no explicit location is specified, the following default locations
are tried in order: 1. The Authorization header using the Bearer schema. See
here
. Example: Authorization: Bearer . 2. access_token
query parameter.
See this
Multiple JWTs can be verified for a request. Each JWT has to be
extracted from the locations its issuer specified or from the default
locations. This field is set if JWT is sent in a request header. This field
specifies the header name. For example, if header=x-goog-iap-jwt-assertion
,
the header format will be x-goog-iap-jwt-assertion: .
Corresponds to the JSON property jwtHeaders
24196 24197 24198 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24196 def jwt_headers @jwt_headers end |
#jwt_params ⇒ Array<String>
This field is set if JWT is sent in a query parameter. This field specifies
the query parameter name. For example, if jwt_params[0] is jwt_token, the JWT
format in the query parameter is /path?jwt_token=.
Corresponds to the JSON property jwtParams
24203 24204 24205 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24203 def jwt_params @jwt_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24210 24211 24212 24213 24214 24215 24216 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 24210 def update!(**args) @audiences = args[:audiences] if args.key?(:audiences) @issuer = args[:issuer] if args.key?(:issuer) @jwks_public_keys = args[:jwks_public_keys] if args.key?(:jwks_public_keys) @jwt_headers = args[:jwt_headers] if args.key?(:jwt_headers) @jwt_params = args[:jwt_params] if args.key?(:jwt_params) end |