Forum Discussion
jclark53_145678
Nimbostratus
Feb 27, 2014Pass variable through policy using iRule
We are setting up a relatively standard f5 deployment using SAML for SSO. Aside from a standard username/password logon, there are situations where users may click a link that points directly to a pi...
jclark53_145678
Nimbostratus
Feb 27, 2014https://example.com/consume.aspx is the AssertionConsumerService but is also the app/relying party. The app then logs the user in unless contentid exists, in which case it should forward directly to that contentid (usually a document or video) without completely logging them in (but this occurs in the target application). The tricky part is getting the value into the response assertion if the custom session variable is set in an iRule. If I were to use a cookie would this work?:
when RULE_INIT {
set cookie_name "contentid"
}
when ACCESS_SESSION_STARTED {
set c_id [HTTP::query]
if { $c_id ne "" } {
HTTP::cookie insert name $::cookie_name value $c_id
} else {
HTTP::cookie remove $::cookie_name
}
}
- jclark53_145678Feb 28, 2014
Nimbostratus
This doesnt seem to be working.. the webtop seems to truncate everything after ? in the URL and I don't see a cookie being set. Is ACCESS_SESSION_STARTED the correct event to write the cookie?
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