Jwt class
Deprecated JWT configuration for origin authentication. JWT configuration for origin authentication.
Constructors
-
Jwt({Input<
List< ? audiences, Input<String> >String> ? issuer, Input<String> ? jwksPublicKeys, Input<List< ? jwtHeaders, Input<JwtHeader> >List< ? jwtParams})String> > -
Creates a new Jwt.
audiencesA 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.comissuerIdentifies the issuer that issued the JWT, which is usually a URL or an email address. Examples: https://securetoken.google.com, 1234567-compute@developer.gserviceaccount.comjwksPublicKeysThe provider's public key set to validate the signature of the JWT.jwtHeadersjwt_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. Seehere. Example: Authorization: Bearer . 2.access_tokenquery parameter. SeethisMultiple 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, ifheader=x-goog-iap-jwt-assertion, the header format will be x-goog-iap-jwt-assertion: .jwtParamsThis field is set if JWT is sent in a query parameter. This field specifies the query parameter name. For example, if jwt_params0is jwt_token, the JWT format in the query parameter is /path?jwt_token=.const -
Jwt.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
audiences
→ Input<
List< ?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
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
issuer
→ Input<
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
final
-
jwksPublicKeys
→ Input<
String> ? -
The provider's public key set to validate the signature of the JWT.
final
-
jwtHeaders
→ Input<
List< ?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_tokenquery parameter. SeethisMultiple 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, ifheader=x-goog-iap-jwt-assertion, the header format will be x-goog-iap-jwt-assertion: .final -
jwtParams
→ Input<
List< ?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
0is jwt_token, the JWT format in the query parameter is /path?jwt_token=.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited