function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nila SaravananNila Saravanan 

How can I provide a webservice with authentication(Username and password)?

VamsiVamsi
Use Named Credentials ....
Nila SaravananNila Saravanan
Can You explain me or send a link for a reference. So that I can get an idea
VamsiVamsi
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_named_credentials.htm

Please mark as best answer if the above helps ...!!!