Skip to content

Commit

Permalink
IMN-867 - Fix BFF getProducerPurposes by adding API role to GET /clie…
Browse files Browse the repository at this point in the history
…ntsWithKeys in auth process (#1054)
  • Loading branch information
ecamellini authored Oct 4, 2024
1 parent 805c078 commit fbcb181
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const authorizationService = authorizationServiceBuilder(
const authorizationRouter = (
ctx: ZodiosContext
): Array<ZodiosRouter<ZodiosEndpointDefinitions, ExpressContext>> => {
const { ADMIN_ROLE, SECURITY_ROLE, M2M_ROLE, SUPPORT_ROLE } = userRoles;
const { ADMIN_ROLE, SECURITY_ROLE, M2M_ROLE, SUPPORT_ROLE, API_ROLE } =
userRoles;

const authorizationClientRouter = ctx.router(authorizationApi.clientApi.api, {
validationErrorHandler: zodiosValidationErrorToApiProblem,
Expand Down Expand Up @@ -145,6 +146,7 @@ const authorizationRouter = (
SECURITY_ROLE,
M2M_ROLE,
SUPPORT_ROLE,
API_ROLE,
]),
async (req, res) => {
const ctx = fromAppContext(req.ctx);
Expand Down

0 comments on commit fbcb181

Please sign in to comment.