ERPConnect Services Runtime (ECSR) offers the following authentication options for the SAP connection, that are available while creating the ECS Service Application:
Secure Store Services
ECSR will use the SharePoint Secure Store Services to get the SAP credentials of the logged SharePoint user. In this case use the option Secure Store Application ID to select an existing Secure Store Application.
Technical Access (SAP Username and Password)
Use this option and set the the fields Username and Password.
SNC / Partner Name
When your SAP system is configured to be accessed via SSO with SNC, select SNC and set Partner Name. Partner Name has the form: p:firstname.lastname@example.org.
Be sure that the c2WTS service is activated in SharePoint under “services on server” and as windows service. C2WTS must be configured to define which Active Directory users and groups have access to the service.
To configure SSO with SNC on your SAP System and on the client side refer to our Knowledge Base article: http://my.theobald-software.com/index.php?/Knowledgebase/Article/View/87/3/snc-connection-with-sso
SSO Ticket ECSR can use an SAP SSO Ticket. Either use the option SSO Ticket and set the field Ticket Issuer URL or check the option SSO ticket (pass-through). For the last case refer to the following C# code sample that shows how to get an SSO ticket using ERPConnect. After that the SSO ticket is used to create an ERPConnectServicesClient:
R3Connection con = new R3Connection("sbi.theobald-software.com", 0, "Elzein", "Password", "EN", "800"); string ssoTicket = con.GetSSOTicket(); ERPConnectServiceClient client = new ERPConnectServiceClient("ECS SAP SOO Ticket", ssoTicket);