Skip to content

Commit 0a8ba3d

Browse files
committed
check openid-configuration first
1 parent a2513ee commit 0a8ba3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func fetch[T any](u *url.URL, dest *T) error {
6060
}
6161

6262
func GetOpenIDConfig(issuer *url.URL) (config OpenIDConfig, err error) {
63-
for _, p := range []string{"oauth-authorization-server", "openid-configuration"} {
63+
for _, p := range []string{"openid-configuration", "oauth-authorization-server"} {
6464
u, _ := issuer.Parse("/.well-known/" + p)
6565

6666
err = fetch(u, &config)

0 commit comments

Comments
 (0)