edgexfoundry / edgex-taf

Apache License 2.0
11 stars 25 forks source link

Problems with jwt_token when use SECURITY_SERVICE_NEEDED=true #812

Closed kimanh1 closed 1 year ago

kimanh1 commented 1 year ago

1.I have read this script image

  1. I know it is used for generate the jwt_token when add user in kong and all module scripts will use this jwt_token . image 3.However, I have my jwt_token: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCcExuZmdEc2MyV0Q4RjJxTmZISzVhODRqakprd3pEayIsImV4cCI6MTY4MDQ5MDA0MSwibmJmIjoxNjgwNDg2NDQxLCJpYXQiOjE2ODA0ODY0NDF9.X7EmBGnDB39tWqnfV4N_m3iIXDCbmaH0dLSfwgRA8R9mfeAFlnCUasnccJu6tAkbDp-CjGaGknB0krX8iLX1g
    for my edgex so I want to use my jwt_token instead of jwt of user Kong: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiNGI4ZWJlZS0zYmRiLTRmOTktOTRkNC1lNWU2YzQ0YzkxNGEiLCJleHAiOjE2ODA1OTA5NDMsIm5iZiI6MTY4MDU4NzM0MywiaWF0IjoxNjgwNTg3MzQzfQ.7zJzliUOjpIUW5WMUiazH7TbPm7wXNoKqOpYmzPutucVkCdTwbfC4y_nG2HegMBTsOy7GCLeMpUAXQyod7ka_g associate with Kong user when add user in kong. How can I config to use my jwt_token?
cherrycl commented 1 year ago

TAF scripts generate jwt token on every suite. Like example, https://github.com/edgexfoundry/edgex-taf/blob/bb02da33eed9213297b0ba755e680762c60ff2bf/TAF/testScenarios/functionalTest/V2-API/core-data/event/DELETE-negative.robot#L6 You can comment out the line on all suite and set your own token to global variable.

cherrycl commented 1 year ago

Close this issue due to no activity.