Skip to content

Commit

Permalink
fix: update full oidc settings
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zimnowoda committed Oct 15, 2024
1 parent c7ca782 commit c60b3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/gitea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ async function setGiteaOIDCConfig(update = false) {
gitea admin auth add-oauth --name "otomi-idp" --key "${clientID}" --secret "${clientSecret}" --auto-discover-url "${discoveryURL}" --provider "openidConnect" --admin-group "platform-admin" --group-claim-name "groups" --group-team-map '${teamNamespaceString}'
elif ${update}; then
echo "Gitea OIDC config is different. Updating OIDC config for otomi-idp."
gitea admin auth update-oauth --id "$AUTH_ID" --key "${clientID}" --secret "${clientSecret}" --auto-discover-url "${discoveryURL}" --group-team-map '${teamNamespaceString}'
gitea admin auth update-oauth --id "$AUTH_ID" --key "${clientID}" --secret "${clientSecret}" --auto-discover-url "${discoveryURL}" --provider "openidConnect" --admin-group "platform-admin" --group-claim-name "groups" --group-team-map '${teamNamespaceString}'
else
echo "Gitea OIDC config is up to date."
fi
Expand Down

0 comments on commit c60b3ad

Please sign in to comment.