We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5c1a708 commiteab2971Copy full SHA for eab2971
coderd/coderd.go
@@ -948,9 +948,13 @@ func New(options *Options) *API {
948
}
949
950
// OAuth2 metadata endpoint for RFC 8414 discovery
951
-r.Get("/.well-known/oauth-authorization-server",api.oauth2AuthorizationServerMetadata())
+r.Route("/.well-known/oauth-authorization-server",func(r chi.Router) {
952
+r.Get("/*",api.oauth2AuthorizationServerMetadata())
953
+})
954
// OAuth2 protected resource metadata endpoint for RFC 9728 discovery
-r.Get("/.well-known/oauth-protected-resource",api.oauth2ProtectedResourceMetadata())
955
+r.Route("/.well-known/oauth-protected-resource",func(r chi.Router) {
956
+r.Get("/*",api.oauth2ProtectedResourceMetadata())
957
958
959
// OAuth2 linking routes do not make sense under the /api/v2 path. These are
960
// for an external application to use Coder as an OAuth2 provider, not for