<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How do I change what is sent for the value of <cas:user>?<br>
<br>
I would think that's just coming from the subject's canonical principal name?<br></blockquote><div><br></div><div>Yes, but in a roundabout way that may be relevant. Since the CAS ticket validation process is a back channel message exchange that necessarily happens _after_ authentication, the only available source of principal is from an existing IdP session. Thus the CAS <user> element is populated from SessionContext.getIdPSession().getPrincipalName(). The session principal is of course driven by subject canonicalization, but unfortunately it's not driven directly by protocol and relying party as with SAML flows. Thus subject canonicalization does not run at ticket validation time where you could run a different canonicalization flow to get a different sort of principal for the CAS protocol. Ideally the subject canonicalization flow would run at ticket validation time, but it wasn't clear to me how to do that initially. I'm open to suggestions for improvement.</div><div><br></div><div>M</div><div><br></div></div></div>