forked from keploy/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request keploy#52 from keploy/fix-microsoft-login
feat: add microsoft identity association json
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...ault)/.well-known/microsoft-identity-association.json/microsoft-identity-association.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"associatedApplications": [ | ||
{ | ||
"applicationId": "645d2271-c43f-4b6c-b2c9-53febcb59340" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
app/(default)/.well-known/microsoft-identity-association.json/route.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}); | ||
} |