Skip to content

Instantly share code, notes, and snippets.

@mrworf
Last active June 10, 2025 23:15
Show Gist options
  • Save mrworf/27a8e688e9cb3b19b6db9a28f342ace0 to your computer and use it in GitHub Desktop.
Save mrworf/27a8e688e9cb3b19b6db9a28f342ace0 to your computer and use it in GitHub Desktop.
Remove WebAuthn from Authentik since 1password isn't supported properly
# Run the following code via "ak shell"
#
import authentik.stages.authenticator_totp.models as totp_models
import authentik.stages.authenticator_webauthn.models as webauthn_models
from authentik.core.models import User
user = User.objects.get(username="akadmin")
totp_models.TOTPDevice.objects.filter(user=user).delete()
webauthn_models.WebAuthnDevice.objects.filter(user=user).delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment