Error "Grant type 'password' not allowed for the client." for Resource Owner Password flow

see the answer by @brightertools