Skip to content

Commit

Permalink
Remove python dependency (#506)
Browse files Browse the repository at this point in the history
remove jose
  • Loading branch information
mmacata authored Apr 16, 2024
1 parent 184d6a4 commit 857cf39
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/actinia_core/core/common/keycloak_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
need to store keycloak admin credentials!
"""
from keycloak import KeycloakOpenID
from jose.exceptions import ExpiredSignatureError

from actinia_core.core.common.user_base import (
ActiniaUserBase,
Expand Down Expand Up @@ -167,8 +166,6 @@ def verify_keycloak_token(token):
token_info = keycloak_openid.decode_token(
token, key=KEYCLOAK_PUBLIC_KEY, options=options
)
except ExpiredSignatureError:
return None
except Exception:
return None
return create_user_from_tokeninfo(token_info)
Expand Down

0 comments on commit 857cf39

Please sign in to comment.