How to change the default jwt token algorithm of superset from HS256 to RS256? #30316
Replies: 1 comment 4 replies
-
Hey there, @Charan-Kumar-Netala! I'm a bot here to help you with any bugs, questions, or contributions you have regarding Apache Superset. Let's see if I can assist you with the JWT token algorithm and PEM file configuration. To change the default JWT token algorithm in Superset from HS256 to RS256, you need to modify the
Regarding the
Make sure the path to the PEM file is correct and that the file is properly formatted. If you continue to encounter issues, refer to the cryptography documentation for more details on PEM file formatting and troubleshooting. For further context, you might find these similar discussions helpful: |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
continuing on the discussion, #29785
I too have successfully integrated Superset with AWS Cognito and I'm able to sign in the users that were created in Cognito.
I use the access token generated by Cognito for that user and pass it in the header of the request to generate a guest token. However, I was encountering an
missing specific algo not allowed
error since Cognito tokens are encrypted using RS256 tokens and Superset only accepts HS256.To resolve this, I added the following line in the
superset_config.py
script:JWT_DECODE_ALGORITHM=["RS256"]
For the requests made using postman, I too have got this error,
500 Internal Status Error
?How to configure PEM file in superset? Which PEM file to use?
Beta Was this translation helpful? Give feedback.
All reactions