* wip reintroduce SAML SSO * Fix the imports * wip * Some tweaks * Fix the type * Reduce the textarea height * Cleanup * Fix the access issues * Make the SAML SSO active on the sidebar * Add SP's instructions * Remove the console.log * Add the condition to check SAML SSO is enabled * Replace SAML SSO with Single Sign-On * Update to SAML feature * Upgrade the @boxyhq/saml-jackson * Fix the SAML part and other cleanup * Tweaks to SAML SSO setup * Fix the type * Fix the import path * Remove samlLoginUrl * Import fixes * Simplifies endpoints Co-authored-by: zomars <zomars@me.com>
14 lines
424 B
TypeScript
14 lines
424 B
TypeScript
import { NextApiRequest } from "next";
|
|
|
|
import jackson from "@calcom/features/ee/sso/lib/jackson";
|
|
import { defaultHandler, defaultResponder } from "@calcom/lib/server";
|
|
|
|
async function postHandler(req: NextApiRequest) {
|
|
const { oauthController } = await jackson();
|
|
return await oauthController.token(req.body);
|
|
}
|
|
|
|
export default defaultHandler({
|
|
POST: Promise.resolve({ default: defaultResponder(postHandler) }),
|
|
});
|