Change username in CAS response?
Marvin Addison
marvin.addison at gmail.com
Thu Jun 30 07:07:05 EDT 2016
On Wed, Jun 29, 2016 at 6:25 PM Lucia Siochi <Lucia.Siochi at cpcc.edu> wrote:
> I saw there is a username reference in validateSuccess.vm, which comes
> from a variable:
>
>
> <cas:user>$escapeUtils.escapeXml($ticketValidationResponse.userName)</cas:user>
>
> Can I change the value of $ticketValidationResponse.userName just before
> the response is generated?
>
Yes.
> If so, how?
>
By editing the system/flows/cas/serviceValidate flow.
> Is this a bad idea or will it cause problems?
>
Yes. Editing flows is advanced customization and fraught with pitfalls.
Avoid if possible.
>
>
> Or is there a better way to get the originally-cased username value in the
> CAS Response?
>
Disabling the username canonicalization flow as Tom described. The only
tricky part is the profile activation part because you said you only wanted
this functionality for the CAS protocol. Please review the following docs:
https://wiki.shibboleth.net/confluence/display/IDP30/ActivationConditions
Hopefully you can see how to do what you need after careful review.
M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160630/cfc35be8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 2555 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20160630/cfc35be8/attachment.jpg>
More information about the users
mailing list