Skip to content

Commit 74161dd

Browse files
committed
fix: support path parameters in OAuth2 metadata endpoints
Change-Id: Ic28d30af39fcb3c8eea40607e0241c5aa096cc80 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 21402c7 commit 74161dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/coderd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,9 +948,9 @@ func New(options *Options) *API {
948948
}
949949

950950
// OAuth2 metadata endpoint for RFC 8414 discovery
951-
r.Get("/.well-known/oauth-authorization-server", api.oauth2AuthorizationServerMetadata())
951+
r.Get("/.well-known/oauth-authorization-server*", api.oauth2AuthorizationServerMetadata())
952952
// OAuth2 protected resource metadata endpoint for RFC 9728 discovery
953-
r.Get("/.well-known/oauth-protected-resource", api.oauth2ProtectedResourceMetadata())
953+
r.Get("/.well-known/oauth-protected-resource*", api.oauth2ProtectedResourceMetadata())
954954

955955
// OAuth2 linking routes do not make sense under the /api/v2 path. These are
956956
// for an external application to use Coder as an OAuth2 provider, not for

0 commit comments

Comments
 (0)