Forum Discussion
SAP Mobile app detection
I added a Client Type to my Access policy and tried a variety of expressions in the branch rules to detect this application. Nothing has worked.
expr { [string tolower [mcget {session.user.agent}]] contains "SAP" } - Allow
expr { [string tolower [mcget {session.user.agent}]] contains "SAP BusinessObjects Mobile" } - Alow
Fallback - Deny
The Log shows: Recieved User-Agent header: SAP%2520BusinessObjects%2520Mobile%2f4.4.27%20CFNetwork%2f609%20Darwin%2f13.0.0
Any ideas?
2 Replies
- Kevin_Stewart
Employee
You're doing a string tolower on the user agent variable, so it'll never equal "SAP".
Try "sap". - Bob_H__117248
Nimbostratus
Thanks!
I changed it to this and it initially appears to be working.
expr { [mcget {session.user.agent}] contains "SAP" }
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