User Principal Attribute into groovy

31 views
Skip to first unread message

RJ

unread,
May 17, 2017, 2:25:24 PM5/17/17
to cas-...@apereo.org
Whats the variable name thats got the user principal from authentication? We don't want to do any attribute resolution, just getting the username/principal from the authentication.

class SSOAttrRelease {
    def Map<String, List<Object>> run(final Object... args) {
        def currentAttributes = args[0]
        def logger = args[1]
        logger.debug("Current attributes received are {}", currentAttributes)
        return[APPUSER:assertion.currentAttributes ]
    }

currentAttributes don't have anything.. may be, because we dont use a resolver.
I cant call this in a groovy script:
assertion
.getPrincipal().getName()
Reply all
Reply to author
Forward
0 new messages