diff --git a/server/server.go b/server/server.go index 5e2d032..df19d1f 100755 --- a/server/server.go +++ b/server/server.go @@ -357,7 +357,7 @@ func (s *Server) ValidationTokenRequest(r *http.Request) (oauth2.GrantType, *oau return "", nil, errors.ErrInvalidRequest } - userID, err := s.PasswordAuthorizationHandler(r.Context(), username, password, clientID) + userID, err := s.PasswordAuthorizationHandler(r.Context(), clientID, username, password) if err != nil { return "", nil, err } else if userID == "" {