on 05-02-2006 9:58 PM
I am trying to get the user id from the MYSAPSSO2 cookie from my .net application that is running through EP6.
So far I have the following code most of it taken from the artical "Enabling Single Sign-On for ASP.NET Applications in Enterprise Portal 6:
SAP.Connector.Destination dest = new SAP.Connector.Destination();
dest.MySAP_SSO2 = HttpUtility.UrlDecode(this.Request.Cookies["MYSAPSSO2"].Value);
string TheCookie;
TheCookie = dest.MySAP_SSO2.ToString();
Response.Write(TheCookie);
My question is, what code do I use from here to get the user id from the jumbled string that is returned?
I understood that you didn't need it for that. In the article:
It says:
You want to use the portal SSO to connector with SAP .NET Connector: In fact you dont need the .NET Ticket Toolkit for this, because the SAP .NET Connector supports the MySAPSSSO2 ticket directly. You only need to UrlDecode the cookie string:
SAP.Connector.Destination dest = new SAP.Connector.Destination();
// set other properties here
dest.MySAP_SSO2 = HttpUtility.UrlDecode(this.Request.Cookies["MYSAPSSO2"].Value);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't need the ticket toolkit if you just want to use the SAP Logon Ticket to connect with an ABAP backend using the .NET Connector.
But I understood that your main issue is to read the user name from the ticket (and maybe also check if the ticket is valid). For this you need the ticket toolkit.
The user name ist encrypted indide of the ticket string. To read it you need the Ticket Toolkit or something equivalent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.