Skip to content

Commit

Permalink
fix(multifence-validation): Specify exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
vpsx committed Jul 1, 2021
1 parent 3d18ee5 commit e17c3de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fence/blueprints/login/fence_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from fence.blueprints.login.redirect import validate_redirect
from fence.config import config
from fence.errors import Unauthorized
from fence.jwt.errors import JWTError
from fence.jwt.validate import validate_jwt
from fence.models import IdentityProvider

Expand Down Expand Up @@ -101,7 +102,7 @@ def get(self):
purpose="id",
attempt_refresh=True,
)
except:
except JWTError:
# Since fenceshib cannot be updated to issue "new-style" ID tokens
# (where scopes are in the scope claim and aud is in the aud claim),
# allow also "old-style" Fence ID tokens.
Expand Down

0 comments on commit e17c3de

Please sign in to comment.