123vvishwakarma commented on issue #31675:
URL: https://github.com/apache/superset/issues/31675#issuecomment-2636250980

   Hi @rusackas @leschiffres 
   
   I am also facing same issue while calling /csrf_token Api from postman of 
Apache superset
   
   Step which I am following.
   
   1. call api http://localhost:8088/api/v1/security/login
   
   getting response with this token
   {
       "access_token": 
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNzM4NzQ4NzYyLCJqdGkiOiIzMzNlNjg5Mi1jZjk3LTQ5NDQtYmQ4Mi02NDQwZjQ5ZDcyZjMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoxLCJuYmYiOjE3Mzg3NDg3NjIsImNzcmYiOiJhMzhkM2ExOS1lNzc0LTQ4YWItOTczZi04NTVjMWQ1YWZlN2YiLCJleHAiOjE3Mzg3NDk2NjJ9.YZIBJh36rQs5sR4diwtJlz2yK9uC4gYlxgKapAQlmqw",
       "refresh_token": 
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTczODc0ODc2MiwianRpIjoiOTA5YWY3M2ItMjI0OS00OGNlLWFlYmEtOTRkMDI5OTUwNThiIiwidHlwZSI6InJlZnJlc2giLCJzdWIiOjEsIm5iZiI6MTczODc0ODc2MiwiY3NyZiI6ImJjODU2MzA2LTBiYjEtNGIwMi1hZDIwLTRkOWQ4ZWIwZWJhYyIsImV4cCI6MTc0MTM0MDc2Mn0.VCmZQBYJnJValrj06FXroACyc5SRLWKxBYX-5S1igUk"
   }
   
   Decoded the token.
   
   {
     "fresh": true,
     "iat": 1738748762,
     "jti": "333e6892-cf97-4944-bd82-6440f49d72f3",
     "type": "access",
     "sub": 1,
     "nbf": 1738748762,
     "csrf": "a38d3a19-e774-48ab-973f-855c1d5afe7f",
     "exp": 1738749662
   }
   
   2. Call this api http://localhost:8088/api/v1/security/csrf_token with above 
token so getting below error.
   
   {
       "msg": "Subject must be a string"
   }
   
   Because of sub here is integer but when any api validating token in Apache 
Superset except string. 
   
   Can you suggest the based solution here.
   
   Thank you,
   Vivek


-- 
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