Hi, I have an internal rest api that accepts oauth, and when I attempted to request add oauth provider for an alarm action, there are some config items that I cannot be sure:
the rest api accepts token request in this requirement, illustrated in curl is:
curl --location --request POST 'http://[hostname]/[api_name]/Token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=[username]' \
--data-urlencode 'password=[password]'
In the add oauth provider form:
Can I confirm the following:
1. is grant type == client credential correct?
2. should I provide the client id as username and secret as password in the 2 boxes, or add in the request body as shown?
3. should use Basic authentication with the default method as shown?
PS: I tried some but did not get luck, hopefully you can provide some guides.
Thanks