mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-19 06:05:25 +02:00
- Added a new `forward_auth_settings` table to manage authentication domains and their configurations. - Introduced UI components for handling forward authentication, including enabling/disabling SSO for domains and selecting SSO providers. - Updated existing tests to include validation for the new `forwardAuthProviderId` field in domain configurations. - Enhanced the dashboard to integrate forward authentication management, allowing users to configure SSO settings directly from the application interface. This update improves the flexibility and security of application authentication by allowing integration with various identity providers.
111 lines
4.1 KiB
TypeScript
111 lines
4.1 KiB
TypeScript
import { createTRPCRouter } from "../api/trpc";
|
|
import { adminRouter } from "./routers/admin";
|
|
import { aiRouter } from "./routers/ai";
|
|
import { applicationRouter } from "./routers/application";
|
|
import { backupRouter } from "./routers/backup";
|
|
import { bitbucketRouter } from "./routers/bitbucket";
|
|
import { certificateRouter } from "./routers/certificate";
|
|
import { clusterRouter } from "./routers/cluster";
|
|
import { composeRouter } from "./routers/compose";
|
|
import { deploymentRouter } from "./routers/deployment";
|
|
import { destinationRouter } from "./routers/destination";
|
|
import { dockerRouter } from "./routers/docker";
|
|
import { domainRouter } from "./routers/domain";
|
|
import { environmentRouter } from "./routers/environment";
|
|
import { gitProviderRouter } from "./routers/git-provider";
|
|
import { giteaRouter } from "./routers/gitea";
|
|
import { githubRouter } from "./routers/github";
|
|
import { gitlabRouter } from "./routers/gitlab";
|
|
import { libsqlRouter } from "./routers/libsql";
|
|
import { mariadbRouter } from "./routers/mariadb";
|
|
import { mongoRouter } from "./routers/mongo";
|
|
import { mountRouter } from "./routers/mount";
|
|
import { mysqlRouter } from "./routers/mysql";
|
|
import { notificationRouter } from "./routers/notification";
|
|
import { organizationRouter } from "./routers/organization";
|
|
import { patchRouter } from "./routers/patch";
|
|
import { portRouter } from "./routers/port";
|
|
import { postgresRouter } from "./routers/postgres";
|
|
import { previewDeploymentRouter } from "./routers/preview-deployment";
|
|
import { projectRouter } from "./routers/project";
|
|
import { auditLogRouter } from "./routers/proprietary/audit-log";
|
|
import { customRoleRouter } from "./routers/proprietary/custom-role";
|
|
import { forwardAuthRouter } from "./routers/proprietary/forward-auth";
|
|
import { licenseKeyRouter } from "./routers/proprietary/license-key";
|
|
import { ssoRouter } from "./routers/proprietary/sso";
|
|
import { whitelabelingRouter } from "./routers/proprietary/whitelabeling";
|
|
import { redirectsRouter } from "./routers/redirects";
|
|
import { redisRouter } from "./routers/redis";
|
|
import { registryRouter } from "./routers/registry";
|
|
import { rollbackRouter } from "./routers/rollbacks";
|
|
import { scheduleRouter } from "./routers/schedule";
|
|
import { securityRouter } from "./routers/security";
|
|
import { serverRouter } from "./routers/server";
|
|
import { settingsRouter } from "./routers/settings";
|
|
import { sshRouter } from "./routers/ssh-key";
|
|
import { stripeRouter } from "./routers/stripe";
|
|
import { swarmRouter } from "./routers/swarm";
|
|
import { tagRouter } from "./routers/tag";
|
|
import { userRouter } from "./routers/user";
|
|
import { volumeBackupsRouter } from "./routers/volume-backups";
|
|
/**
|
|
* This is the primary router for your server.
|
|
*
|
|
* All routers added in /api/routers should be manually added here.
|
|
*/
|
|
|
|
export const appRouter = createTRPCRouter({
|
|
admin: adminRouter,
|
|
application: applicationRouter,
|
|
backup: backupRouter,
|
|
bitbucket: bitbucketRouter,
|
|
certificates: certificateRouter,
|
|
cluster: clusterRouter,
|
|
compose: composeRouter,
|
|
deployment: deploymentRouter,
|
|
destination: destinationRouter,
|
|
docker: dockerRouter,
|
|
domain: domainRouter,
|
|
gitea: giteaRouter,
|
|
gitProvider: gitProviderRouter,
|
|
github: githubRouter,
|
|
gitlab: gitlabRouter,
|
|
libsql: libsqlRouter,
|
|
mariadb: mariadbRouter,
|
|
mongo: mongoRouter,
|
|
mounts: mountRouter,
|
|
mysql: mysqlRouter,
|
|
notification: notificationRouter,
|
|
port: portRouter,
|
|
postgres: postgresRouter,
|
|
previewDeployment: previewDeploymentRouter,
|
|
project: projectRouter,
|
|
redirects: redirectsRouter,
|
|
redis: redisRouter,
|
|
registry: registryRouter,
|
|
security: securityRouter,
|
|
server: serverRouter,
|
|
settings: settingsRouter,
|
|
sshKey: sshRouter,
|
|
stripe: stripeRouter,
|
|
swarm: swarmRouter,
|
|
user: userRouter,
|
|
ai: aiRouter,
|
|
organization: organizationRouter,
|
|
licenseKey: licenseKeyRouter,
|
|
sso: ssoRouter,
|
|
forwardAuth: forwardAuthRouter,
|
|
whitelabeling: whitelabelingRouter,
|
|
customRole: customRoleRouter,
|
|
auditLog: auditLogRouter,
|
|
schedule: scheduleRouter,
|
|
rollback: rollbackRouter,
|
|
volumeBackups: volumeBackupsRouter,
|
|
environment: environmentRouter,
|
|
tag: tagRouter,
|
|
patch: patchRouter,
|
|
});
|
|
|
|
// export type definition of API
|
|
export type AppRouter = typeof appRouter;
|