I actually use .NET's User.Identity.Name to get username. -----Original Message----- From: Lukas [mailto:[email protected]] Sent: Monday, October 22, 2012 5:52 AM To: [email protected] Subject: [cas-dev] Starting with CAS and .NET
Hello all I'm newbie with CAS and I have problem with integration .NET application with CAS. I prepared a .NET WebSite, where is only one button. Action on ButtonClick is FormsAuthentication.RedirectToLoginPage(); After button click, I'm logging with CAS. Next I pass user name and password. Click login. Then is PostBack to my WebSite, I hold breakpoint on Page_Load() method. Here is problem - Context.User.Identity = null. When user is logged in with CAS, when i click on the button nothing happens. So, the WebSite knows, that user is logged in. Only what I need is to know UserName, who is logged on. Please let me know, how can I get ticket, logged user name and other info about authentication. Greetings, Lukas M. -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
