This might also serve as a reference example: https://github.com/UniconLabs/cas-sample-dotnet-webapp
From: Scott [mailto:[email protected]] Sent: Wednesday, April 15, 2015 11:45 AM To: [email protected] Subject: Re: [cas-user] Retrieving username in .NET after authentication if (User.Identity.IsAuthenticated) { username = User.Identity.Name <http://User.Identity.Name> ; } On Wed, Apr 15, 2015 at 9:33 AM, Adam Causey <[email protected] <mailto:[email protected]> > wrote: There's a developer here using the .NET client for CAS authentication, and they'd like to read the username of who logged in from the Session. I'm sure it's easy, but I'm not a .NET developer. Could someone share a code sample of how this is done? I can't seem to find one. Thanks! -Adam -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- 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-user
