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
Jyosi jyosiJyosi jyosi 

Apex Webservice class authentication

global without sharing class XXXWebService {
    
    global class XXXServiceInfo
    {
        webService String status;
        webService String complaint
        webService String teamId;
        webService String UserName;
        webService String Password;
    }
Here the extrenal team will pass the username and password,how do i need to check the authentication in Apex Class.
Can you please help me out.
}

Thanks

Regards,
Jyo
NagendraNagendra (Salesforce Developers) 
Hi Jyosi,

Here are couple of resources that might help you.
  • https://developer.salesforce.com/forums/?id=906F00000009A8TIAU
  • https://developer.salesforce.com/forums/?id=906F00000008pFRIAY
  • https://trailhead.salesforce.com/en/apex_integration_services/apex_integration_webservices
  • https://developer.salesforce.com/blogs/developer-relations/2009/01/using-basic-authentication-with-web-services.html
  • https://developer.salesforce.com/forums/?id=906F0000000A5iOIAS
Hope this helps.

Best Regards,
Nagendra.P
Jyosi jyosiJyosi jyosi
Hello Nagendra,

Thanks you ,the links which you have provided are one which we are consuming the service ,I need to give a service where i think to implement authentication.

Thanks

Regards,
Jyo