Skip to content

Commit

Permalink
Merge pull request #9 from wuespace/fix/add-oidc-callback-handler
Browse files Browse the repository at this point in the history
Add OIDC callback route to http app
  • Loading branch information
pklaschka authored Dec 11, 2024
2 parents 6c9678c + 413e262 commit 6c07f47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/http/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { svgRoutes } from "$http/routes/svg.ts";
import { uiRoutes } from "$http/routes/ui.tsx";
import { apiRoutes } from "$http/routes/api.ts";
import { lookupRoutes } from "$http/routes/lookup.ts";
import { withUser } from "$http/middleware/oidc.ts";

export * from "$http/lookup-url.ts";
export * from "$http/barcode-svg.ts";
Expand Down Expand Up @@ -48,3 +49,8 @@ httpApp.route("/api", apiRoutes);
httpApp.route("/svg", svgRoutes);
httpApp.route("/", lookupRoutes);
httpApp.route("/", uiRoutes);
httpApp.get(
"/oidc/callback",
withUser,
(c) => c.text("OIDC not configured", 404),
);

0 comments on commit 6c07f47

Please sign in to comment.