Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F7T_REALM_RSA_TYPE is 'NoneType' error #200

Open
gmxavier1 opened this issue May 21, 2024 · 1 comment
Open

F7T_REALM_RSA_TYPE is 'NoneType' error #200

gmxavier1 opened this issue May 21, 2024 · 1 comment

Comments

@gmxavier1
Copy link

Dear all,
In order to prevent an error when F7T_REALM_RSA_TYPE is 'NoneType', I advise to modify:
realm_pubkey_type = os.environ.get("F7T_REALM_RSA_TYPE").strip('\'"')
at line 67 of cscs_api_common.py to
realm_pubkey_type = os.environ.get("F7T_REALM_RSA_TYPE", '',).strip('\'"')

@jpdorsch
Copy link
Collaborator

Hi @gmxavier1 ,

Thanks for opening this issue. From version v1.16.1 the variable F7T_REALM_RSA_TYPE will be changed to F7T_AUTH_ALGORITHMS and will support multiple algorithms for decoding JWT tokens.

Additionally, it will have the default value "RS256". (see: https://github.com/eth-cscs/firecrest/blob/master/src/common/cscs_api_common.py#L56).

Kind regards,
Juan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants