Skip to content

Commit

Permalink
Update validate_signature error code and message
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Jun 21, 2024
1 parent 3986ba7 commit e40d5f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/openg2p_spar_mapper_api/services/request_validations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from openg2p_fastapi_common.service import BaseService
from openg2p_g2pconnect_common_lib.schemas import (
AsyncResponseStatusReasonCodeEnum,
SecurityErrorCodes,
SyncResponseStatusReasonCodeEnum,
)

Expand All @@ -12,8 +11,8 @@ class RequestValidation(BaseService):
def validate_signature(self, is_signature_valid) -> None:
if not is_signature_valid:
raise RequestValidationException(
code=SecurityErrorCodes.INVALID_JWT_SIGNATURE,
message=SecurityErrorCodes.INVALID_JWT_SIGNATURE,
code=SyncResponseStatusReasonCodeEnum.rjct_jwt_invalid,
message=SyncResponseStatusReasonCodeEnum.rjct_jwt_invalid,
)

return None
Expand Down

0 comments on commit e40d5f0

Please sign in to comment.