Jump to content
Welcome to our new Citrix community!

Multiple SAML Authentication Actions Single gateway vserver How do I write expression to chose appropriate action based on user URL entered?

Recommended Posts

Have 2 x NetScaler VPX (different sites) each with a single gateway vserver.

Originally configured as stand alone with SAML authentication to AzureAD.

Result is I have 2 x URL's which resolve to individual NetScaler's with SAML actions that point to their own individual Azure enterprise applications. (ns1.corp.com and ns2.corp.com)

I now a add GSLB (access.corp.com) configuration on top of this using the same gateway vservers. I have a new SAML action and Azure enterprise application.

Each NetScaler has 2 x Authentication policies with expression of "true" and their own Authentication action configured for either ns1.corp.com or access.corp.com.

How do I or can I change the expression "true" to one that allows for both of these authentication policies to be bound to the gateway vserver and the correct action to be applied based on the URL entered by user.

I looked and tested expression HTTP.REQ.URL.CONTAINS("access.corp.com") and HTTP.REQ.URL.CONTAINS("access.corp.com").NOT but this didn't seem to work.

I'm new to this expression writing and would appreciate some guidance from you guru's out there.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...