Forum Discussion

KeithJ__312872's avatar
KeithJ__312872
Icon for Nimbostratus rankNimbostratus
Mar 22, 2019

iRule redirects to different VS Authentication Profiles

Is there a way to pick different VS authentication profiles to be used based on url/uri?

We currently redirect to different pools based on url/uri and would also like to use specific auth profiles now for each one also.

Current iRule snip:

when HTTP_REQUEST {
switch -glob "[string tolower [HTTP::host][HTTP::path]]" {
"*opm.gov/umbraco*" {         
         pool opm-uat-umbraco-pool }
"*uat.cioa.opm.gov*" {         
         pool opm-uat-cioa-pool }

What we would like:

when HTTP_REQUEST {
switch -glob "[string tolower [HTTP::host][HTTP::path]]" {
"*opm.gov/umbraco*" {         
         pool opm-uat-umbraco-pool
         auth_profile xxxx_yyyy }
"*uat.cioa.opm.gov*" {   
         pool opm-uat-cioa-pool
         auth_profile xxxx_zzzz }

2 Replies

  • Hello Keith,

     

    While I have seen commands for getting the values of auth profiles, I haven't actually seen anything on selecting them through TCL. It might make more sense to redirect them to different virtual servers based on their url/uri, and have different auth profiles applied to those separate virtual servers.

     

    Best of luck,

     

    Austin