Skip to content

Commit 9635383

Browse files
committed
fix: spec compliance for openauth patch
Well-Known URIs need to be at root path
1 parent 183c625 commit 9635383

File tree

4 files changed

+114
-26
lines changed

4 files changed

+114
-26
lines changed

apps/caddy/Caddyfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
level info
1414
}
1515

16+
handle /.well-known/jwks.json {
17+
rewrite * /api/v1/auth/.well-known/jwks.json
18+
reverse_proxy api:{$API_PORT}
19+
}
20+
21+
handle /.well-known/oauth-authorization-server {
22+
rewrite * /api/v1/auth/.well-known/oauth-authorization-server
23+
reverse_proxy api:{$API_PORT}
24+
}
25+
1626
handle /api/* {
1727
reverse_proxy api:{$API_PORT}
1828
}

apps/caddy/conf/Caddyfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ localhost:80 {
1313
level info
1414
}
1515

16+
handle /.well-known/jwks.json {
17+
rewrite * /api/v1/auth/.well-known/jwks.json
18+
reverse_proxy http://host.docker.internal:1993
19+
}
20+
21+
handle /.well-known/oauth-authorization-server {
22+
rewrite * /api/v1/auth/.well-known/oauth-authorization-server
23+
reverse_proxy http://host.docker.internal:1993
24+
}
25+
1626
handle /api/* {
1727
reverse_proxy http://host.docker.internal:1993
1828
}

0 commit comments

Comments
 (0)