Skip to main content

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

Issue

I’m following the instructions to configure SSO with Okta in my organisation. But then I get this error when adding the metadata URL:

CSRF Verification FailedA required security token was not found or was invalid.

Applies To

  • Customers on the Business level or above

  • SSO

  • Okta

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 in your Okta configuration.

Did this answer your question?