We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6cd654 commit 8b357d0Copy full SHA for 8b357d0
1 file changed
validation_service_api/validation_service/auth.py
@@ -88,6 +88,10 @@ async def get_user_info(self):
88
raise HTTPException(
89
status_code=status.HTTP_401_UNAUTHORIZED, detail=user_info["error_description"]
90
)
91
+ elif user_info.get("statusCode", None) == 401:
92
+ raise HTTPException(
93
+ status_code=status.HTTP_401_UNAUTHORIZED, detail=user_info["message"]
94
+ )
95
logger.debug(user_info)
96
# make this compatible with the v1 json
97
user_info["id"] = user_info["sub"]
0 commit comments