-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated message when token is not valid #906
Conversation
Codecov Report
@@ Coverage Diff @@
## master #906 +/- ##
==========================================
- Coverage 53.92% 52.70% -1.22%
==========================================
Files 179 179
Lines 8742 8748 +6
==========================================
- Hits 4714 4611 -103
- Misses 4028 4137 +109
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This auth class is used for middlewares its not used by the front-end, to change the message you need to override get_validated_token
in CustomJWTAuthentication
where you need to catch InvalidToken
and re raise it with a different messege.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Override this auth class
https://github.com/coronasafe/care/blob/master/config/settings/base.py#L302
fixes coronasafe/care_fe#2964