Skip to content

Commit

Permalink
fix: remove hardcoded org ID
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jan 16, 2023
1 parent 31f978b commit 7013d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const configureAndListen = async (
for (const configuration of config) {
validatedClaims = await getValidatedToken(
token,
`https://oidc.circleci.com/org/fbdaa81e-9fcd-4b31-9f5d-11feaa8ef52d${configuration.organizationId}`,
`https://oidc.circleci.com/org/${configuration.organizationId}`,
);
if (validatedClaims) {
req.log.info(`Validated incoming OIDC token from: ${validatedClaims.sub}`);
Expand All @@ -56,7 +56,7 @@ export const configureAndListen = async (
req.log.warn(
'Failed to validing incoming OIDC token, did not match any configured organization',
);
return reply.code(401);
return reply.code(401).send();
}

// Do a quick-pass to filter down secret providers based on contextId and projectId claims
Expand Down

0 comments on commit 7013d5a

Please sign in to comment.