Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fix self.token reference.
Browse files Browse the repository at this point in the history
Signed-off-by: rreis <rodrigo@zalando.de>
  • Loading branch information
rreis committed Jan 8, 2021
1 parent dd8c134 commit ad336e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sevenseconds/helper/auth.py
Expand Up @@ -34,7 +34,7 @@ def __init__(self,
self.service_resources = aws_credentials_service_resources
self.account_list_url = account_list_url
self.token_managed_id_key = token_managed_id_key
self.decoded_token = jwt.decode(token, options={"verify_signature": False})
self.decoded_token = jwt.decode(self.token, options={"verify_signature": False})

if self.token_managed_id_key not in self.decoded_token:
raise ValueError('Invalid token. Please check your ztoken configuration')
Expand Down

0 comments on commit ad336e2

Please sign in to comment.