Thank you for your reply. Unfortunately I cannot modify the CAS Server. I am thinking about writing my own variant of the CAS10TicketValidator that will do the lookup right after it parses the ticket response and use that in DotNet CAS Client. Would this work? Any other ideas?
On Thursday, December 17, 2015 at 8:35:16 AM UTC+2, Misagh Moayyed wrote: > > Modify the cas server to retrieve the application-specific username from > your database as an attribute and then in your cas service registry, > designate the username returned to the app to be that retrieved attribute. > > > > *From:* [email protected] <javascript:> [mailto:[email protected] > <javascript:>] *On Behalf Of *Marios > *Sent:* Wednesday, December 16, 2015 1:22 PM > *To:* CAS Community <[email protected] <javascript:>> > *Subject:* [SPAM] [cas-user] DotNet CAS Client - changing the username > > > > Hi all, > > > > I have the following situation: > > > > - Existing ASP.NET <http://asp.net/> application with it's own user > database. > > - A CAS server with different usernames from the ASP.NET <http://asp.net/> > application > > - A database view in a different database with a table that maps usernames > between the CAS server and the ASP.NET <http://asp.net/> app. > > > > The ASP.NET <http://asp.net/> application relies a lot in calling > HttpContext.Current.User.Identity.Name > <http://httpcontext.current.user.identity.name/>. If I use the DotNet CAS > Client, HttpContext.Current.User.Identity.Name > <http://httpcontext.current.user.identity.name/> is set to the CAS server > usernames which are different from those of the ASP.NET <http://asp.net/> > app. > Modifying the application in this respect is not easy. > > > > So I am wondering how to handle this. > > > > Is there a good place within the DotNet CAS Client to lookup the CAS > username in the database view and change it to the application username? My > goal being that the CAS Client will set the > HttpContext.Current.User.Identity.Name > <http://httpcontext.current.user.identity.name/> to the application > username and not to the CAS username. > > > > Thank you in advance, > > Marios > > -- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ > . > -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
