Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29c7d1c

Browse files
committed
fix: support path parameters in OAuth2 metadata endpoints
Change-Id: Ic28d30af39fcb3c8eea40607e0241c5aa096cc80Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent21402c7 commit29c7d1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎coderd/coderd.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,10 @@ func New(options *Options) *API {
949949

950950
// OAuth2 metadata endpoint for RFC 8414 discovery
951951
r.Get("/.well-known/oauth-authorization-server",api.oauth2AuthorizationServerMetadata())
952+
r.Get("/.well-known/oauth-authorization-server/*",api.oauth2AuthorizationServerMetadata())
952953
// OAuth2 protected resource metadata endpoint for RFC 9728 discovery
953954
r.Get("/.well-known/oauth-protected-resource",api.oauth2ProtectedResourceMetadata())
955+
r.Get("/.well-known/oauth-protected-resource/*",api.oauth2ProtectedResourceMetadata())
954956

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp