Forum Discussion
APM Different Authentication level for different URI
HI Kevin , session.custom.authlevel is a custom session variable that i've created in prior irule . This is the irule . I am working in a telecom company and get different requests from the cellular network and the public network .
when ACCESS_SESSION_STARTED { set user_ip [ACCESS::session data get "session.user.clientip"] if { [IP::addr $user_ip equals "10.1.34.0 mask 255.255.255.0"] } { log local0.notice "CELLULAR NETWORK" ACCESS::session remove ACCESS::session data set session.custom.WIFI 0 ACCESS::session data set session.custom.authlevel 0
}
else
{
ACCESS::session data set session.custom.WIFI 1
ACCESS::session data set session.custom.authlevel 0
log local0.notice "WIFI NETWORK"
}
}
when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable }
right after that irule i want to check the session status and to validate if the url needs to authenticate and if the user is already authenticated according to the right authentication level .
Thanks Asher Hod
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