Skip to content

Commit

Permalink
fix: expose siop endpoints publicly
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jan 29, 2024
1 parent 59cef83 commit 0354f6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
import { Router } from "express";
import { credentialRequestToCredentialMapper } from "./issuer";

process.on("unhandledRejection", (reason, promise) => {
process.on("unhandledRejection", (reason) => {
console.log("Unhandled rejection", reason);
});

Expand Down Expand Up @@ -115,7 +115,7 @@ export const agent = new Agent({
}),
openId4VcHolder: new OpenId4VcHolderModule(),
openId4VcVerifier: new OpenId4VcVerifierModule({
baseUrl: joinUriParts(AGENT_HOST, ["oid4vp"]),
baseUrl: joinUriParts(AGENT_HOST, ["siop"]),
router: openId4VpRouter,
}),
},
Expand Down
2 changes: 1 addition & 1 deletion agent/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function run() {
app.use(cors({ origin: "*" }));

app.use("/oid4vci", openId4VciRouter);
app.use("/oid4vp", openId4VpRouter);
app.use("/siop", openId4VpRouter);
app.use("/api", apiRouter);
app.use("/.well-known/did.json", async (_, response: Response) => {
const didWeb = await getWebDidDocument();
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
labels:
traefik.enable: "true"

traefik.http.routers.openid4vc-server.rule: Host(`openid4vc.animo.id`) && (PathPrefix(`/api`) || PathPrefix(`/oid4vci`) || PathPrefix(`/.well-known`))
traefik.http.routers.openid4vc-server.rule: Host(`openid4vc.animo.id`) && (PathPrefix(`/api`) || PathPrefix(`/oid4vci`) || PathPrefix(`/siop`) || PathPrefix(`/.well-known`))
traefik.http.routers.openid4vc-server.entrypoints: web-secure
traefik.http.routers.openid4vc-server.tls.certresolver: zerossl
traefik.http.routers.openid4vc-server.service: openid4vc-server-service
Expand All @@ -38,7 +38,7 @@ services:
- node.labels.type == community
labels:
traefik.enable: "true"
traefik.http.routers.openid4vc-app.rule: Host(`openid4vc.animo.id`) && !PathPrefix(`/oid4vci`) && !PathPrefix(`/api`) && !PathPrefix(`/.well-known`)
traefik.http.routers.openid4vc-app.rule: Host(`openid4vc.animo.id`) && !PathPrefix(`/oid4vci`) && !PathPrefix(`/siop`) && !PathPrefix(`/api`) && !PathPrefix(`/.well-known`)
traefik.http.routers.openid4vc-app.entrypoints: web-secure
traefik.http.routers.openid4vc-app.tls.certresolver: zerossl
traefik.http.routers.openid4vc-app.service: openid4vc-app-service
Expand Down

0 comments on commit 0354f6a

Please sign in to comment.