You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/02/11 21:27:40 UTC

[GitHub] [superset] lilykuang commented on a change in pull request #18651: feat(embedded): aud claim and type for guest token

lilykuang commented on a change in pull request #18651:
URL: https://github.com/apache/superset/pull/18651#discussion_r805015904



##########
File path: superset/security/manager.py
##########
@@ -1337,13 +1341,22 @@ def get_guest_user_from_request(self, req: Request) -> Optional[GuestUser]:
             return None
 
         try:
+            aud = (
+                current_app.config["GUEST_TOKEN_JWT_DECODE_AUDIENCE"] or get_url_host()
+            )
             token = self.parse_jwt_guest_token(raw_token)

Review comment:
       https://github.com/jpadilla/pyjwt/blob/master/jwt/api_jwt.py#L32 `verify_aud` is set to True by default 
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org