Skip to content

Commit

Permalink
update oidcIssuer
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Nov 22, 2024
1 parent 7638a61 commit fefe538
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions copy-pods-to-css.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ async function updateOidcIssuer ({ username }, cssDataPath, cssUrl) {
await writeFile(path, newProfile)
checks.oidcIssuer = true
}
if (profile.includes(`oidcIssuer> <${cssUrl.slice(0, -1)}>`)) {
const newProfile = profile.replace(new RegExp(`oidcIssuer> <${cssUrl.slice(0, -1)}>`), `oidcIssuer> <${cssUrl}>`)
await writeFile(path, newProfile)
checks.oidcIssuer = true
}
}
finally {
assert(printChecks(username, checks), 'oidcIssuer update failed');
Expand Down

0 comments on commit fefe538

Please sign in to comment.