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"?
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.