fix: allow identities to list projects they are apart of

This commit is contained in:
Daniel Hougaard
2025-06-01 00:12:56 +04:00
parent 4db82e37c1
commit dfcf613023
3 changed files with 57 additions and 2 deletions
@@ -173,7 +173,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
})
}
},
onRequest: verifyAuth([AuthMode.JWT, AuthMode.API_KEY]),
onRequest: verifyAuth([AuthMode.JWT, AuthMode.API_KEY, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
const workspaces = await server.services.project.getProjects({
includeRoles: req.query.includeRoles,