I may not be doing effective searches in the documention or forum but I am looking for a way via REST where I can have a program or user bypass authentication prompts when accessing certain dashboards. Can this be done? Is there an example somewhere?
Answer by David M. ·
Hi John,
You may find what you need here with this link Server REST Interfaces#AuthenticationandAuthorization.
This example is from the License Count Plugin,
log.finer("Entering username/password setup");
String userpass = username + ":" + password;
String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());
disableCertificateValidation();
//URL to grab XML file
log.finer("Entering XML file grab");
connection = overviewurl.openConnection();
connection.setRequestProperty("Authorization", basicAuth);
connection.setConnectTimeout(50000);
I hope this helps.
Thanks,
David
JANUARY 15, 3:00 PM GMT / 10:00 AM ET