Getting 401 error for webAPI

Certified Senior Developer

I have an appian web api with Oauth 2.0 cliet enabled.
But when i am trying to get the token by hitting the token request end point by passing the 

grant_type, client_id, client_secret  as queryparams and content_type as application/x-www-form-urlencoded.
this I am trying from java micro-service, while doing so,
I have tried multiple ways like sending them in body , as params
i am getting the following error :

INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token: invalid_client attempting to pass Authentication in body
INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token using auth in body: invalid_client
ERROR com.appiancorp.connectedsystems.http.execution.AppianHttpRequestExecutor - ConnectorRuntimeException [title=Unsupported authentication, This request requires authentication but does not specify the type of authentication expected]

Any leads would be appreciated,
Thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply Children