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()