overture-stack / ego

OAuth 2.0 authorization service that supports multiple OpenID identity providers
https://www.overture.bio/products/ego
GNU Affero General Public License v3.0
25 stars 14 forks source link

BUG - Endpoint GET /oauth/refresh is not returning passport permissions #723

Open leoraba opened 1 year ago

leoraba commented 1 year ago

Steps how to reproduce the issue:

Prerequisites: Have an active login session in Ego with a user registered with a Passport broker: 1) EGO JWT token 2) EGO refresh token cookie stored in browser as refreshId

Steps: Call POST /oauth/refresh (using POSTMAN) Header: Cookie: refreshId=[REFRESH_TOKEN_HERE] Authorization: bearer [EGO_TOKEN_HERE]

Expected Response:

Actual response:

Tentative solution: use refresh token provided by Passport broker instead of the usual EGO refresh token

Endpoint used by: platform-api and workflow-ui

leoraba commented 1 year ago

PR #718