Forum Discussion
Doug_129661
Nimbostratus
Sep 04, 2013Manipulate SAML assertion data
I am new to F5 technology so I am not sure if this is areasonable question or not.
I wondered if it is possible to collect all the SAML data from the ID provider and then post that XML data
to ...
Kevin_Stewart
Employee
Sep 05, 2013I've had a chance to look at it, and the decoded assertion is stored in the session.saml.last.assertion session variable. So to go back to question 1, can this value be sent as an HTTP header (the easiest method), or is the application expecting an assertion POST?
If the former, then something like this might work:
when ACCESS_ACL_ALLOWED {
if { [ACCESS::session data get session.saml.last.sent] == "" } {
ACCESS::session data set session.saml.last.sent 1
HTTP::header insert ASSERTION [b64encode [ACCESS::session data get session.saml.last.assertion]]
}
}
This sends the base64-encoded assertion as an HTTP header ("ASSERTION") in the FIRST request to the server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
