Forum Discussion
Chris_Kozloski_
Jun 27, 2017Nimbostratus
iRule to Check for Bearer Token in Auth Headers
I have a requirement where I need to be able to check and see if an oauth bearer token exists in the authentication headers before I pass it to the backside server(s).
Right now we are running 1...
Yann_Desmarest
Cirrus
Hi,
You can try this code for step 1 :
when HTTP_REQUEST {
if { [HTTP::header exists Authorization] and [HTTP::header Authorization] contains "Bearer" and [getfield [HTTP::header Authorization] " " 2] != "" } {
some code
}
}
shadi_darwish
Jul 20, 2020Nimbostratus
how can I load balance with persistence using Bearer Token in Auth Headers
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