Class CfnAuthorizer.JWTConfigurationProperty
The JWTConfiguration
property specifies the configuration of a JWT authorizer.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public class JWTConfigurationProperty : Object, CfnAuthorizer.IJWTConfigurationProperty
Syntax (vb)
Public Class JWTConfigurationProperty
Inherits Object
Implements CfnAuthorizer.IJWTConfigurationProperty
Remarks
Required for the JWT
authorizer type. Supported only for HTTP APIs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGatewayv2;
var jWTConfigurationProperty = new JWTConfigurationProperty {
Audience = new [] { "audience" },
Issuer = "issuer"
};
Synopsis
Constructors
JWTConfigurationProperty() |
Properties
Audience | A list of the intended recipients of the JWT. |
Issuer | The base domain of the identity provider that issues JSON Web Tokens. |
Constructors
JWTConfigurationProperty()
public JWTConfigurationProperty()
Properties
Audience
A list of the intended recipients of the JWT.
public string[] Audience { get; set; }
Property Value
System.String[]
Remarks
A valid JWT must provide an aud
that matches at least one entry in this list. See RFC 7519 . Required for the JWT
authorizer type. Supported only for HTTP APIs.
Issuer
The base domain of the identity provider that issues JSON Web Tokens.
public string Issuer { get; set; }
Property Value
System.String
Remarks
For example, an Amazon Cognito user pool has the following format: https://cognito-idp. {region} .amazonaws.com/ {userPoolId}
. Required for the JWT
authorizer type. Supported only for HTTP APIs.