This uses the {@Link AuthOptions.issuerBaseURL} to find the OAuth 2.0
Authorization Server Metadata to get the {@Link AuthOptions.jwksUri}
and {@Link AuthOptions.issuer}.
You can also skip discovery and provide the {@Link AuthOptions.jwksUri} (or
define the env variable JWKS_URI) and {@Link AuthOptions.issuer} (or define
the env variable ISSUER) yourself.
Middleware that will return a 401 if a valid JWT bearer token is not provided in the request.
Can be used in 2 ways:
ISSUER_BASE_URL)This uses the {@Link AuthOptions.issuerBaseURL} to find the OAuth 2.0 Authorization Server Metadata to get the {@Link AuthOptions.jwksUri} and {@Link AuthOptions.issuer}.
JWKS_URI) and {@Link AuthOptions.issuer} (or define the env variableISSUER) yourself.You must provide the
audienceargument (orAUDIENCEenvironment variable) used to match against the Access Token'saudclaim.Successful requests will have the following properties added to them: