Skip to content

Commit

Permalink
Merge pull request keploy#52 from keploy/fix-microsoft-login
Browse files Browse the repository at this point in the history
feat: add microsoft identity association json
  • Loading branch information
Sarthak160 authored Jul 10, 2024
2 parents b86793a + a8e0d8c commit 3a6980c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"associatedApplications": [
{
"applicationId": "645d2271-c43f-4b6c-b2c9-53febcb59340"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server';
import fs from 'fs';
import path from 'path';

export async function GET() {
const filePath = path.join(process.cwd(), 'app', '(default)', '.well-known','microsoft-identity-association.json', 'microsoft-identity-association.json');
const fileContents = fs.readFileSync(filePath, 'utf8');

return new NextResponse(fileContents, {
status: 200,
headers: {
'Content-Type': 'application/json',
},
});
}

0 comments on commit 3a6980c

Please sign in to comment.