feat(sso): refactor SSO provider update logic

- Changed the update mechanism for SSO providers to use a new `updateSSOProvider` function, improving code clarity and maintainability.
- Updated the payload structure for OIDC and SAML configurations to directly use the input values instead of stringifying them.
- Enhanced the overall handling of SSO provider updates within the API router.
This commit is contained in:
Mauricio Siu
2026-02-13 00:15:05 -06:00
parent edbc98aea7
commit 2788323e01
5 changed files with 60 additions and 33 deletions

View File

@@ -349,6 +349,7 @@ export const auth = {
handler,
createApiKey: api.createApiKey,
registerSSOProvider: api.registerSSOProvider,
updateSSOProvider: api.updateSSOProvider,
};
export const validateRequest = async (request: IncomingMessage) => {