Acquiring a Token using Advanced REST client


#1

When using Advanced REST client to acquire a token, should I set authentication to basic, just to obtain the token, then my next request should be OAUTH2?

or do I start with OAUTH2 with the GRANT TYPE set to "password" or "client credentials"?

I am a bit confused.


(Michael Basnight) #2

under the hood the RestClient just uses the apache HttpAsyncClient for authentication. It would be best to look for answers on how to configure the credentials by looking at the HttpAsyncClient code. Here is an example of how to do basic auth, but it will likely be different for configuring OAUTH.


#3

Issue is resolved.

All the confusion started with me needing to upgrade my elastic instance.