Justin (Midas) Gilman
10/07/2022, 7:58 PMAuthorization
header isn't a valid JWT token (misconfigured environment might pass null
or empty string) I want to log an error on the server "Missing or Invalid JWT Token". Is there a place I can do this?Justin (Midas) Gilman
10/07/2022, 10:10 PMchallenge
section below your validate {}
block, like this
validate {
...
}
challenge { _, _ ->
reportJwtChallengeError(context)
call.respond(HttpStatusCode.Unauthorized)
}