withnale commented on issue #31675:
URL: https://github.com/apache/superset/issues/31675#issuecomment-2714315615

   It looks like the problem is external in  flask_appbuilder/security/api.py. 
So the proper fix is to make either make sure user.id is a string within 
superset or for flask_appbuilder to cast it to and from strings if required.
   
   
   ```
   
   class SecurityApi(BaseApi):
   ...
   def login(self) -> Response:
           ...
           resp[API_SECURITY_ACCESS_TOKEN_KEY] = create_access_token(
               identity=user.id, fresh=True
           )
           if "refresh" in login_payload and login_payload["refresh"]:
               resp[API_SECURITY_REFRESH_TOKEN_KEY] = create_refresh_token(
                   identity=user.id
               )
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to