I have a custom MFA in which I need to update the Principal upon successful 
authentication. Once the authentication is complete I have the following 
return statement where "alternate" a different username that the one who 
logged in. 

return createHandlerResult(
        credential, this.principalFactory.createPrincipal(alternate), new 
ArrayList<>(0));

In the logs I can see the Authenticated principal with the correct username 
which I set in the MFA handler. But the Principal reverts back to the 
original username for the action "TICKET_GRANTING_TICKET_CREATED". 
 
I'm not sure where I'm going wrong with this. Any help would be appreciated.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/06ee8f65-6574-4aae-beb3-fd74499b2364n%40apereo.org.

Reply via email to