Merge pull request #3695 from Infisical/daniel/identity-get-projects

fix: allow identities to list projects they are apart of
This commit is contained in:
Daniel Hougaard
2025-06-03 16:52:03 +04:00
committed by GitHub
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,