# Different auth type per path/user-agent/header?

**URL:** <https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155>\
**Category:** Technical Forums\
**Tags:** big-ip, aam, security, application-delivery\
**Created:** [November 8, 2020, 7:36pm UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155 "2020-11-08T19:36:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo\_Duarte](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Ricardo\_Duarte](https://community.f5.com/u/Ricardo_Duarte)\
**Post date:** [November 8, 2020, 7:36pm UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155/1 "2020-11-08T19:36:41Z")

</div>

Hi,

Is there a way to force different authentication methods for different paths under the same VS?

Or do the same, but per user-agent? Say SAML for Browsers, NTLM for everything else.

I can’t see anything under the policy builder, so maybe irules can do it somehow?

(I don’t want to use per-request policies, if possible)

Thanks

---

<div class="post-metadata">

**Author:** ![PeteWhite](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/petewhite/32/33768_2.png) [@PeteWhite](https://community.f5.com/u/PeteWhite)\
**Post date:** [November 9, 2020, 3:15pm UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155/2 "2020-11-09T15:15:31Z")

</div>

APM has this in the VPE as a client side check ( client Type and Client OS ), or you can check the landing URI to do different auth for the different paths.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Duarte](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Ricardo\_Duarte](https://community.f5.com/u/Ricardo_Duarte)\
**Post date:** [November 14, 2020, 8:21pm UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155/3 "2020-11-14T20:21:45Z")

</div>

VPE will not work for me.

I want to do something similar to what the “Exchange Profile” does: /activesync is basic ; /mapi is ntlm ; owa is web auth, etc.

But I can’t match paths/urls on per-session requests… At least I cant find a way to do it.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Duarte](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Ricardo\_Duarte](https://community.f5.com/u/Ricardo_Duarte)\
**Post date:** [November 15, 2020, 11:21am UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155/4 "2020-11-15T11:21:23Z")

</div>

Would this be a good option?

- Create a Standard VS with the VIP
- Then create multiple Internal VS with the same pool servers but different APM policies
- Then route to the internal VS from the Standard VIP with iRules

---

<div class="post-metadata">

**Author:** ![PeteWhite](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/petewhite/32/33768_2.png) [@PeteWhite](https://community.f5.com/u/PeteWhite)\
**Post date:** [November 16, 2020, 10:17am UTC](https://community.f5.com/t/different-auth-type-per-path-user-agent-header/60155/5 "2020-11-16T10:17:37Z")

</div>

Hi Ricardo, Yes, it would – or you can use the landing URI session variable within a policy.
