#10001 Nightly failure in otp token_sync
Opened by dhanina. Modified

After https://github.com/freeipa/freeipa/pull/8324 bad referrer for sync_otp ends with 400, this is a change from old behavior. Since the endpoint is used through ipa command ipa otptoken_sync. We should revert the change for otp token implemented and simply not check the referrer as we did in the past. We could also add referer to the request, but referer is commonly used by browsers, elsewhere not so much.

The to be deleted block:

        if not self.check_referer(environ):
            return self.bad_request(environ, start_response, 'denied')

$SERVER/idm-ci/freeipa_upstream_nightly/Nightly-previous/master/2026-06-03_04-44/previous/test_otp/1/report.html?sort=result

Metadata Update from @dhanina:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8437

master:

  • 0b44b2a3eb9c58411d2c6afe80a5be0760713d0e Revert sync_token referer check
Metadata