We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f7c1ee commit 9faf9adCopy full SHA for 9faf9ad
1 file changed
routers/api/packages/api.go
@@ -101,6 +101,12 @@ func CommonRoutes() *web.Route {
101
r.Use(context.PackageContexter())
102
103
verifyAuth(r, []auth.Method{
104
+ auth.Shortcut{
105
+ // auth.OAuth2 and auth.Basic both read "Authorization: Bearer <token>" header,
106
+ // so we need have a shortcut for them to avoid the first one returning error to skip the second one.
107
+ &auth.OAuth2{},
108
+ &conan.Auth{},
109
+ },
110
&auth.OAuth2{},
111
&auth.Basic{},
112
&nuget.Auth{},
0 commit comments