1

I find a way to pass current user credentials by default to my rest call in java.I start application by a specific user and I dont want to enter password information in my rest call(spring resttemplate or something similar to call a rest service)

In c# UseDefaultCredentials =true gives this capability when LDAP authentication is active I try to find similar way.

//c# code
HttpClient client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = true });
Bilgehan
  • 1,135
  • 1
  • 14
  • 41
  • Sorry, but still i look, what exactly you are asking for? – Varadharajan Damotharan May 18 '20 at 14:43
  • I dont want to enter username password information to my rest call.I want to send current credentials infos directly. – Bilgehan May 18 '20 at 14:52
  • I have hands-on experience working in many authentication types. But i wonder here, how to authenticate a user without username and password and also what does "current credentials infos directly " mean? – Varadharajan Damotharan May 18 '20 at 16:22
  • You say mean authentication using session tokens or JWT bearer tokens kind? – Varadharajan Damotharan May 18 '20 at 16:23
  • LDAP authentication I mean.I have two system both work on ldap authentication.I want to pass this ldap credentials by default.I make a rest call to call my other system so I try to find pass my current ldap info to another system.In .net code UseDefaultCredentials = true this work exactly as I want. – Bilgehan May 19 '20 at 11:34

0 Answers0