chore: migrate saml/oidc APIs to App Router (#19515)

* migrate oidc

* migrate saml apis

* remove comment

* add force-dynamic

* fix

* fix

* refactor

---------

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Benny Jooandsean-brydon authored and GitHub committed 2025-03-10 14:36:11 +00:00
1 parent 631c5f7c53
commit 8d18b3da38
10 files changed
+144 -127

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { defaultResponderForAppDir } from "app/api/defaultResponderForAppDir";
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import jackson from "@calcom/features/ee/sso/lib/jackson";
async function handler(req: NextRequest) {
const { oauthController } = await jackson();
const tokenResponse = await oauthController.token(await req.json());
return NextResponse.json(tokenResponse);
}
const postHandler = defaultResponderForAppDir(handler);
export { postHandler as POST };