Skip to content

Problem authenticating to self-hosted instance #335

@tino

Description

@tino

Environment

self-hosed Sentry 25.6.0.dev0; cli: 0.13.0

Steps to Reproduce

`SENTRY_URL=https://sentry.mydomain.com sentry auth login

Expected Result

Log in?

Actual Result

I see a html response, with the main part being:

    <section class="body">
        <div class="page-header">
            <h2>CSRF Verification Failed</h2>
        </div>

        <p>A required security token was not found or was invalid.</p>

        <p>If you're continually seeing this issue, try the following:</p>

        <ol>
          <li>Clear cookies (at least for Sentry's domain).</li>
          <li>Reload the page you're trying to submit (don't re-submit data).</li>
          <li>Re-enter the information, and submit the form again.</li>
          <li>Ensure the URL does not contain an extra  &quot;/&quot; anywhere (eg: https://foo//saml -> https://foo/saml).</li>
        </ol>

Note that the SENTRY_URL isn't documented anywhere. I had to find it through issue and code diving.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions