If you just need the username and not both, you can convert the email to a
username using a custom CredentialsToPrincipalResolver to do the conversion.

Cheers,
Scott


On Tue, Jun 9, 2009 at 4:10 PM, Marvin S. Addison
<[email protected]>wrote:

> > I'ld like to have the user login with their email address and password
> > but once they are authenticated have CAS send the username of the user
> > (not the email address) as part of the authentication response XML.
>
> This is possible using a combination of attributes and requesting a SAML
> 1.1 response.  See http://www.ja-sig.org/wiki/display/CASUM/Attributes
> for more information on attributes.  See
> http://www.ja-sig.org/wiki/display/CASC/JASIG+Client+SAML
> +Saml11TicketValidationFilter+Example<http://www.ja-sig.org/wiki/display/CASC/JASIG+Client+SAML%0A+Saml11TicketValidationFilter+Example>for
>  how to configure the Java CAS
> client to get a SAML response.  See
>
> http://www.middleware.vt.edu/doku.php?id=middleware:cas:client#obtaining_pid_and_attributes_from_java_applicationfor
>  how to get at attributes from your CAS-enabled application.
>
> 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-user

Reply via email to