GET /.well-known/jwks.json – Retrieves the JSON Web Key Set (JWKS) for token verification.

  • The JWKS endpoint provides the public keys needed to verify JWT tokens issued by the auth service.

Headers:

  • None

Body:

  • None

Path Parameters:

  • None

Query Parameters:

  • None

  • 200 OK – JSON stringified object representing the JWKS. See JwksResponse.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid fields in request body
500 Internal Server Error Unexpected error
{
"error": "Detailed error message here"
}

GET /.well-known/jwks.json
      {
"keys": [{
"kty": "RSA",
"kid": "key-id",
"n": "modulus",
"e": "exponent",
"alg": "RS256",
"use": "sig"
}]
}

  • Parameters

    • event: APIGatewayProxyEvent

      The API Gateway event containing the request.

    • context: Context
    • callback: Callback<APIGatewayProxyResult>

    Returns void | Promise<APIGatewayProxyResult>

    A Promise resolving to an API Gateway-compatible response.