When receiving a request to a secured endpoint without token, the server would fail with a 500 error because of trying to execute a startsWith method on a null object.
This patch protects the validateAndExtractToken methods of this failure checking if the token is present and raising a StatelessValidationException.
When receiving a request to a secured endpoint without token, the server would fail with a 500 error because of trying to execute a
startsWith
method on anull
object.This patch protects the
validateAndExtractToken
methods of this failure checking if the token is present and raising aStatelessValidationException
.