Skip to content

Commit

Permalink
feat: add .well-known routes
Browse files Browse the repository at this point in the history
Signed-off-by: Thaddeus Kuah <[email protected]>
  • Loading branch information
thaddeuskkr committed Feb 23, 2025
1 parent 272df60 commit cc056a0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/pages/.well-known/microsoft-identity-association.json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export async function GET() {
return new Response(
JSON.stringify({
associatedApplications: [
{
applicationId: "ee100a84-e7c0-438e-8f0b-8536e9a209f8",
},
],
}),
{ headers: { "Content-Type": "application/json" } },
);
}
13 changes: 13 additions & 0 deletions src/pages/.well-known/webfinger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export async function GET() {
return new Response(
JSON.stringify({
links: [
{
rel: "http://openid.net/specs/connect/1.0/issuer",
href: "https://auth.tkkr.dev",
},
],
}),
{ headers: { "Content-Type": "application/json" } },
);
}

0 comments on commit cc056a0

Please sign in to comment.