Forum Discussion
Teddy_A_328594
Nimbostratus
Jan 31, 2018iRule to assign user id in SAML Assertion message to http header
Need help to assign user id in SAML Assertion message to http header so that Non-SAML application can be supported.
Deployment Scenario:-
* BIG-IP as SAML SP and external IdP
* PeopleSoft appl...
Kai_Wilke
MVP
Feb 01, 2018Hi Teddy,
you may take a look to the iRule below...
when ACCESS_ACL_ALLOWED {
Removing any ocourence of user provided X-P headers (for security reasons)
HTTP::header remove "X-P"
Injecting the SAML nameid value as new X-P header (for SSO purposes)
HTTP::header insert "X-P" [ACCESS::session data get "session.saml.last.attr.name.nameid"]
log local0.debug "Debug: Insert HTTP-Header X-P=[ACCESS::session data get "session.saml.last.attr.name.nameid"]"
}
The iRule removes at first any user provided X-P HTTP-header instance (for security purposes) and then copies the value of the APM variable "session.saml.last.attr.name.nameid" into a new "X-P" HTTP-header.
Cheers, Kai
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
