Acquiring a Token using Advanced REST client

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.

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.

Issue is resolved.

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.