Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1
stars
0
forks
source link
Implement Custom Exceptions and Enhance JWT Test Cases #8
Implement Custom Exceptions and Enhance JWT Test Cases
Description:
In order to streamline our error handling processes and enhance the robustness of our codebase, we need to implement a set of custom exceptions and improve our JWT test cases.
Tasks:
Implement register_error_handlers to centralize error handling.
Introduce the following JWT-related exceptions:
JWTError
JWTAppIdMissingError
JWTPublicKeyNotFoundError
Add session and email-related exceptions:
SessionError
EmailError
Introduce token-specific exceptions:
TokenError
MissingTokenError
InvalidTokenError
Refactor JWT test cases to ensure they handle the new exceptions and cover edge cases.
Acceptance Criteria:
All the new exceptions should be properly implemented and tested.
JWT test cases should be enhanced and should run without failures.
The system should provide clear and specific error messages for the listed exceptions, helping in quicker debugging and issue resolution.
Additional Notes:
This enhancement will greatly improve our system's resilience to unexpected issues and provide developers and end-users with clearer and more descriptive error messages.
Implement Custom Exceptions and Enhance JWT Test Cases
Description:
In order to streamline our error handling processes and enhance the robustness of our codebase, we need to implement a set of custom exceptions and improve our JWT test cases.
Tasks:
register_error_handlers
to centralize error handling.JWTError
JWTAppIdMissingError
JWTPublicKeyNotFoundError
SessionError
EmailError
TokenError
MissingTokenError
InvalidTokenError
Acceptance Criteria:
Additional Notes: This enhancement will greatly improve our system's resilience to unexpected issues and provide developers and end-users with clearer and more descriptive error messages.