Quantcast
Viewing all articles
Browse latest Browse all 2823

User authentication and SSO login via .NET application

Hi everyone,

 

I am working on a .NET web application that connects to SAP and retrieves the list of Functional Locations that are available to a certain user through the BAPI_FUNCLOC_GETLIST function. This works like a charm when using basic user authentication (SAP username and password).

These are the parameters that we're using and their respective values (confidential data has been obscured though):

 

config.Add("ASHOST", "HOST");
config.Add("SYSNR", "00");
config.Add("CLIENT", "420");
config.Add("LANG", "EN");
config.Add("USER", "sap_user");
config.Add("PASSWD", "sap_password");
config.Add("MAX_POOL_SIZE", "1000");

However, there are other users in the company whose preferred authentication method is SSO.


So I added the following parameters to the connection settings, as per the suggestions found in this link:

 

config.Add("SNC_MODE", "true");
config.Add("SNC_PARTNERNAME", "p:sap/SAP_BOX@DOMAIN");

However, I keep getting the following error message:

 

Input string was not in a correct format.

 

where Input string is the function name (BAPI_FUNCLOC_GETLIST). Note that I am passing the function name as string type.

 

Any ideas on how to solve this issue?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>