# SAML Redirection Not Working

**URL:** <https://community.f5.com/t/saml-redirection-not-working/50909>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, saml, application-delivery, idp\
**Created:** [November 4, 2019, 7:22pm UTC](https://community.f5.com/t/saml-redirection-not-working/50909 "2019-11-04T19:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisTheMonkey](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@ChrisTheMonkey](https://community.f5.com/u/ChrisTheMonkey)\
**Post date:** [November 4, 2019, 7:22pm UTC](https://community.f5.com/t/saml-redirection-not-working/50909/1 "2019-11-04T19:22:51Z")

</div>

Hello,

I’m attempting to setup a SAML configuration where KnowBe4 is the SP and our APM’s are the IDP.&nbsp;I have read:

> **[SaaS Application Configuration Guide : KnowBe4](https://clouddocs.f5.com/products/agc/5.0/saml-saas-applications/knowbe4.html)**

I followed it the best I could (it’s pretty generic), but it’s not working.&nbsp;Let me explain what I’m seeing…

The APM presents the login form fine, and I’m able to properly authenticate against the domain.&nbsp;Where I think the problem is coming in is when the IDP \*should\* be redirecting the user back to the SP.&nbsp;What I see when I follow the requests is:

1. User submits form, the form is submitted to the page my.policy on the APM
2. The APM then redirects the browser to /idp?SAMLRequest=\<the encoded request packet\>
3. This is where things stop, the redirect from step 2 times out

When I watch another, working SAML application I see that after step 2 the browser is redirected to a URL starting with “/saml/idp/profile/redirectorpost/sso?SAMLRequest=”.&nbsp;That page redirects the browser back to the SP.

Has anybody seen something like this before?&nbsp;Am I right in thinking that the URL that the form submission redirects to is incorrect in the KnowBe4 version of the configuration?&nbsp;If so, what magic incantation do I use to fix it?

I used the Guided Configuration to setup to SSO application, and I used the KnowBe4 application option

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [November 10, 2019, 4:01pm UTC](https://community.f5.com/t/saml-redirection-not-working/50909/2 "2019-11-10T16:01:36Z")

</div>

can you see where it tries to redirect you to? is that perhaps an internal website or an IP address that doesn’t work out?

---

<div class="post-metadata">

**Author:** ![Dave\_W](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Dave\_W](https://community.f5.com/u/Dave_W)\
**Post date:** [November 11, 2019, 8:34pm UTC](https://community.f5.com/t/saml-redirection-not-working/50909/3 "2019-11-11T20:34:10Z")

</div>

I would suggest increasing the Access Policy logs to debug and see if there are any errors. Also you can use the following to decode the SAML Requests for troubleshooting:

> **[myF5](https://my.f5.com/manage/s/article/K51854802)**
