SAML attributes
Hi folks,
I'm trying to set up SSO with Slack. I have most of the config done but I need to send back the username and email address to slack. Slack requires two variables to be sent back. User.Username and User.Email. I've set the following as a SAML attribute.
User.Username = %(session.logon.last.email)
And then in my access policy I have the following variable assignment.
session.logon.last.username = expr {"[string tolower [lindex [split [mcget {session.logon.last.email}] "@"] 0]]"}
This should split the email address into 2 values with the first value(0) being the username.
The problem is that Slack is seeing the F5 send back User.Username = session.logon.last.username which is no good.
Can anyone tell me what I'm doing wrong?
It should be
-- curly brackets. Can you confirm that you are using curly brackets?%{session.logon.last.email}