Skip to main content

I see CSRF Verification Failed when setting up OKTA, why?

Updated over a month ago

Issue

Iโ€™m following the instructions to enable / configure SAML for our account, but Iโ€™m encountering an error. I select the OKTA integration from the list of Authentication providers, and enter the required metadata.

But then I get this error:

CSRF Verification Failed
โ€‹A required security token was not found or was invalid.

Applies To

  • Customers on the Business level or above

Resolution

Ensure that the Base URL does not have a trailing slash or whitespace at the end (https://sentry.io and not https://sentry.io/) as this is the most common reason for this error message, as it breaks the redirect from OKTA to Sentry. Also, make sure you are using the correct organisation slug.

Did this answer your question?