You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using pyoidc to interact with a backend that doesn't perfectly follow the OIDC spec, and when calling parse_request_response on an invalid token response, I sometimes get an error code that isn't one of the valid TokenErrorResponse errors. The actual error code is buried in the logs, and all the client sees is the 'Missing or fault response' errror. Is it possible to improve the error handling in the parse_response method to raise the actual error code and message to the client? More specifically, improving the verify method of a response to throw an error notifying the user that the error code is not supported by the relevant response class?
Currently, resp.verify() throws an error that is caught, and the response is wiped, resulting in the generic Missing or fault response message from here:
if not resp:
logger.error("Missing or faulty response")
raise ResponseError("Missing or faulty response")
The text was updated successfully, but these errors were encountered:
I'm using pyoidc to interact with a backend that doesn't perfectly follow the OIDC spec, and when calling
parse_request_response
on an invalid token response, I sometimes get an error code that isn't one of the validTokenErrorResponse
errors. The actual error code is buried in the logs, and all the client sees is the 'Missing or fault response' errror. Is it possible to improve the error handling in theparse_response
method to raise the actual error code and message to the client? More specifically, improving theverify
method of a response to throw an error notifying the user that the error code is not supported by the relevant response class?Currently,
resp.verify()
throws an error that is caught, and the response is wiped, resulting in the genericMissing or fault response
message from here:The text was updated successfully, but these errors were encountered: