do not ask for credentials when authentication method is JWT (#4450) (#4513)

This commit is contained in:
Alessandro Ros 2025-05-10 16:20:22 +02:00 committed by GitHub
parent db3c2f8cae
commit d3976fbc15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ func (m *Manager) Authenticate(req *Request) error {
if err != nil {
return Error{
Wrapped: err,
AskCredentials: (req.User == "" && req.Pass == ""),
AskCredentials: m.Method != conf.AuthMethodJWT && req.User == "" && req.Pass == "",
}
}