This is a rough fix for handling intermittent exceptions that can occur when attempting to authenticate.
I've added some body match checks for "unexpected error" and "invalid_grant" in ticket/token parser to throw specific error codes so they can be caught/handled by apps using the api.
Code 498 is now thrown with invalid_grant body match in TokenParser.php error response
Code 503 is now thrown with unexpected error body match in TicketParser.php error response.
Preferably we'd attempt to re-auth when either of these two specific errors occur, but this at least adds the ability to catch and handle these particular error types.
I've added a rough implementation on CheckChallengeExample.php
This is a rough fix for handling intermittent exceptions that can occur when attempting to authenticate.
I've added some body match checks for "unexpected error" and "invalid_grant" in ticket/token parser to throw specific error codes so they can be caught/handled by apps using the api.
Code 498 is now thrown with invalid_grant body match in TokenParser.php error response Code 503 is now thrown with unexpected error body match in TicketParser.php error response.
Preferably we'd attempt to re-auth when either of these two specific errors occur, but this at least adds the ability to catch and handle these particular error types.
I've added a rough implementation on CheckChallengeExample.php
-VoxX