Hi all,
I'm trying to implement surrogate authentication on Cas 6.0.7 with account selection both preselected and gui mode.
I actually manage to authenticate in both modes, but qith gui account selection mode the surrogate attributes are lost.
With preselection mode (correct):
WHO: (Primary User: [[myoperator, myoperator]], Surrogate User: [[mycustomer, mycustomer]])
WHAT: TGT-2-*****EtKSM5O9Bc-myhost-local
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Thu Dec 05 15:44:18 CET 2019
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
With Gui mode (wrong):
=============================================================
WHO: myoperator
WHAT: Supplied credentials: [UsernamePasswordCredential(username=myoperator, source=null)]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Thu Dec 05 15:56:09 CET 2019
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2019-12-05 15:56:26,724 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: mycustomer
WHAT: TGT-4-*****92QlWz5Vs4-myhost-local
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Thu Dec 05 15:56:26 CET 2019
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================
turning on debug log there is no significant difference:
1) Attributes seem to be merged correctly ( DEBUG [org.apereo.cas.authentication.CoreAuthenticationUtils] - <Merged attributes with the final result as [{iduser=[myoperatorid, mycustomerid],)
2) the princial is always nominated as mycustomer
Accounts are stored using jdbc and tickets are exported in JWT.
Any idea on how I can get surrogate attributes to be exported also using gui mode?
Thanks in advance
Michele