logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

feat(core): add `POST /saml-applications` and `DEL /saml-applications/:id` APIs #6822

Open darcyYe opened 3 days ago

darcyYe commented 3 days ago

Summary

Add following APIs:

  1. POST /saml-applications
  2. DEL /saml-applications/:id

This PR resolves LOG-10114 and LOG-10374, can find design here.

Testing

Add integration tests.

Checklist

github-actions[bot] commented 3 days ago

COMPARE TO master

Total Size Diff :warning: :chart_with_upwards_trend: +17.99 KB

Diff by File |Name|Diff| |---|---| |packages/core/package.json|:chart_with_upwards_trend: +182 Bytes| |packages/core/src/routes/applications/application.ts|:chart_with_upwards_trend: +15 Bytes| |packages/core/src/routes/init.ts|:chart_with_upwards_trend: +177 Bytes| |packages/core/src/routes/swagger/utils/documents.ts|:chart_with_upwards_trend: +100 Bytes| |packages/core/src/routes/swagger/utils/general.ts|:chart_with_upwards_trend: +1017 Bytes| |packages/core/src/routes/well-known/well-known.openapi.ts|:chart_with_upwards_trend: +1 Bytes| |packages/core/src/saml-applications/libraries/secrets.ts|:chart_with_upwards_trend: +915 Bytes| |packages/core/src/saml-applications/libraries/utils.ts|:chart_with_upwards_trend: +1.82 KB| |packages/core/src/saml-applications/queries/configs.ts|:chart_with_upwards_trend: +1.15 KB| |packages/core/src/saml-applications/queries/secrets.ts|:chart_with_upwards_trend: +1.31 KB| |packages/core/src/saml-applications/routes/index.openapi.json|:chart_with_upwards_trend: +3.2 KB| |packages/core/src/saml-applications/routes/index.ts|:chart_with_upwards_trend: +2.96 KB| |packages/core/src/saml-applications/routes/utils.ts|:chart_with_upwards_trend: +595 Bytes| |packages/core/src/tenants/Libraries.ts|:chart_with_upwards_trend: +177 Bytes| |packages/core/src/tenants/Queries.ts|:chart_with_upwards_trend: +342 Bytes| |packages/integration-tests/src/api/saml-application.ts|:chart_with_upwards_trend: +471 Bytes| |packages/integration-tests/src/tests/api/application/application.test.ts|:chart_with_upwards_trend: +6 Bytes| |packages/integration-tests/src/tests/api/application/saml-application.test.ts|:chart_with_upwards_trend: +2.74 KB| |packages/phrases/src/locales/en/errors/application.ts|:chart_with_upwards_trend: +207 Bytes| |packages/schemas/src/types/index.ts|:chart_with_upwards_trend: +39 Bytes| |packages/schemas/src/types/saml-application.ts|:chart_with_upwards_trend: +1.52 KB| |packages/schemas/tables/saml_application_configs.sql|:chart_with_upwards_trend: +69 Bytes| |pnpm-lock.yaml|:chart_with_upwards_trend: +942 Bytes|