Forum Discussion
logout URI
some threads about that already but they do not answer my question. Because the APM function "logout URI" is an exact match "equals" and it doesn't fit my use-case, I need to write an iRule. I've seen that previous threads "fight" themselves between those 2 variants
when ACCESS_ACL_ALLOWED {
if { [HTTP::uri] ends_with "/?cmd=logout" } {
ACCESS::session remove
HTTP::redirect "https://[HTTP::host]"
}
}
and the same but with HTTP_REQUEST
I'm not using APM+LTM but have WebApp resources (with or without webtop).I want to be sure that I perform the above but AFTER the original request has been sent to the backend (to perform the APM logout after the backend logout). I'm not sure it's the case with both iRule Events and my use-case (webapp/webtop).
6 Replies
- Kevin_Stewart
Employee
Can you clarify "I'm not using APM+LTM"? It would appear that you are. In any case, if you're looking to remove the access session when the user requests a logout URI from the app, why not just use the Logout URI setting in the access policy itself?
- amolari
Cirrostratus
I meant my backend is an APM web portal application (with and without webtops). The logout URI function is an "equal" match (for ex. "/SignOut.aspx") and I can't use that because my backend provides context-based logout URI (for ex. "abc/EN/SignOut.aspx") So I need to use an irule with an "ends_with" matching of the URI. I've been able to perform the logout of APm for the client with mentionned irule, but the logout request doesn't reach the backend.
- John_Alam_45640Historic F5 Account
try inserting "*/SingOut.aspx" in the logout URI, just for the heck of it. see if it works. The "*" used to work at the end of the Start URI field.
Otherwise, the HTTP_REQUEST event should catch the URI and kill the session:
when HTTP_REQUEST { if { [HTTP::path] ends_with "SingOut.aspx"} { ACCESS::session remove return } } - amolari
Cirrostratus
Thx. I've tried that some time ago. F5 support said not supported. I've open a RFE for that
I'll give a try with session remove440234 - [RFE][APM] add support for * wildcard character inside Logout URI - amolari
Cirrostratus
the above i rule works only partially: i get logged out of the session and the user sees the APM logout page with the errormsg "Invalid SessionID. Your session may have expired." I can live with that. But web application traces show that the backend server (sharepoint here) doesn't receive the GET .../SignOut.aspx, so my users do not get logged out of the application. Any idea?
- amolari
Cirrostratus
F5 supports told me the "Logout URI" functionality is designed only for an LTM+APM deployment. For Portal access mode it's not supported. A BugID RFE exists for this additional support
Bug 339950 - [RFE] [APM] Logout URI support for Reverse-Proxy rewriteOpen a case by F5 support and link it to this BugID if you need this functionality (as there's no workaround possible) Alexandre
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
