mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(core): fix SSO quota guard (#5065)
This commit is contained in:
parent
9a7b19e49d
commit
fce8d142da
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,6 @@ export default function singleSignOnRoutes<T extends AuthedRouter>(...args: Rout
|
|||
},
|
||||
] = args;
|
||||
|
||||
router.use(koaQuotaGuard({ key: 'ssoEnabled', quota, methods: ['POST', 'PUT'] }));
|
||||
|
||||
const pathname = `/${tableToPathname(SsoConnectors.table)}`;
|
||||
|
||||
/*
|
||||
|
@ -68,6 +66,7 @@ export default function singleSignOnRoutes<T extends AuthedRouter>(...args: Rout
|
|||
/* Create a new single sign on connector */
|
||||
router.post(
|
||||
pathname,
|
||||
koaQuotaGuard({ key: 'ssoEnabled', quota }),
|
||||
koaGuard({
|
||||
body: ssoConnectorCreateGuard,
|
||||
response: SsoConnectors.guard,
|
||||
|
|
Loading…
Reference in a new issue