boomerang-io / flow.service.workflow

The backend for front-end microservice for Boomerang Flow, a no-code, cloud-native workflow automation tool. Built in Java using Sprint Boot
https://useboomerang.io
Apache License 2.0
7 stars 8 forks source link

fix creating authorization token logic for retrieving external teams #193

Closed shenqinb-star closed 2 years ago

shenqinb-star commented 2 years ago

Issue

GET /workflow/teams API always return empty array when team external URL (flow.externalUrl.team) is configured.

Changed use apiTokenService.createJWTToken(email) instead of apiTokenService.getUserToken() to generate token to be used to invoke team external URL. (refer the same logic updates in ExternalUserServiceImpl).

shenqinb-star commented 2 years ago

@marcusdroy hi Marcus, pls help to review this PR when you get the time.