Hi, There is a metadata populator to add the client_name as an authentication: https://github.com/Jasig/cas/blob/master/cas-server-support-pac4j/src/main/java/org/jasig/cas/support/pac4j/authentication/ClientAuthenticationMetaDataPopulator.java. It could certainly be turned into something that returned the client_name as a user attribute.
However, it should be in the user identifier, something like: FacebookProfile#1234, but there is a bug in CAS 4.0 and you only get 1234. It will be fixed in CAS 4.1: https://github.com/Jasig/cas/commit/08aa417d9843bd5bc2e6e9be795020109c0ba635. In fact, both will be possible depending on the configuration: https://github.com/Jasig/cas/commit/94b70734c76f9ab24178e22a7c7bd30cbd44dc83 . Best regards, Jérôme LELEU Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org 2014-09-08 16:09 GMT+02:00 Nancy Snoke <nsn...@thegeneral.com>: > So I am using the 4.0 cas server, cas protocol 3, and have delegate > authentication – using pac4j -- set up with facebook, twitter, and google. > The authentication works great. I see how to get attributes returned to my > application. What I do not see is how I can return the client name used > to log in to my application – ie I want attribute that says, facebook, > twitter or google depending on which was used for log in. > > > > Is there a way to set the client name as a returned attribute? > > > > Thanks, > > Nancy Snoke > > -- > You are currently subscribed to cas-user@lists.jasig.org as: lel...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user