I need to access an API which requires password credentials grant type to be used in authentication. But Mulesofts HTTP Request config supports only OAuth2 Authorization Code Grant Type Authentication and OAuth2 Client Credentials Grant Type Authentication.
Is there a way to incorporate password credential grant type in the http request config by using some workaround? Or how can I access the API using password credential grant type from the Mulesoft HTTP connector?
I tried to use the client credential grant type instead of password credentials grant type in HTTP request config, but it is giving me 401 Unauthorized error while calling token url.
Unfortunately, MuleSoft HTTP connector doesn't support the OAuth Password Credentials Grant type and I am not able to see an alternate way to get it done using the HTTP connector.
For more information kindly refer to this MuleSoft article HTTP Connector do not support the OAuth Password Credentials Grant type
It's important to note: Utilizing the password credentials grant is advised against, as it poses a security risk by exposing the resource owner's credentials.
Thank you!