on 12-31-2004 2:19 AM
Hello, I follow the instructions for this article:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enabling single sign-on for asp.net applications in enterprise portal 6.article
but when I test the application I get the message "user not authenticated", the cookie is valid, but I can't obtain the user id with the User.Identity object.
Any idea about this I only need to obtain the logon user id. (I'm not using the PDK for .net)
Regards
Finally I can get the user logon ID with this code
string cookieString = Request.Cookies["MYSAPSSO2"].Value;
cookieString = HttpUtility.UrlDecode(cookieString);
MySapSso2Ticket ticket = new MySapSso2Ticket("verify.pse", cookieString);
MySAPSso2Identity objUsr = new MySAPSso2Identity(ticket, cookieString);
Response.Write objUser.Name;
I'll appreciate your comments if exists another way to do this.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.