adn-agov-iam-admin-project/patterns/fbf7b18179dda28d420420fd_sc.../saveEmailFromAssertionToSes...

7 lines
319 B
Plaintext

try {
response.setSessionAttribute('emailFromAssertion', notes['saml.attributes.http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'])
response.setResult('ok');
} catch(Exception ex) {
LOG.error("Exception in saveEmailFromAssertionToSession groovy script: " + ex)
response.setResult('error');
}