Skip to content

Static Tokens longer than 16 chars result in UI glitch and application+database error #19158

@patschi

Description

@patschi

Describe the bug

In the UI, the tokens are "glitched" and are overlapping, making it non-readable:
Image

When continuing, it results in vague server error:
Image

In logs specific database error DataError('value too long for type character varying(16) occurs.

How to reproduce

  1. Go to stages
  2. Edit static tokens stage
  3. Increase it beyond 16
  4. Configure static tokens, e.g. during login flow with enforced MFA.
    For example:
    Image

Expected behavior

No error to occur when being configurable / not being configurable.

Screenshots

No response

Additional context

No response

Deployment Method

Docker

Version

2025.10.3

Relevant log output

server-1  | {"auth_via": "unauthenticated", "domain_url": "authentik.company", "event": "DataError('value too long for type character varying(16)')", "flow_slug": "pk-authentication", "host": "authentik.company", "level": "warning", "logger": "authentik.flows.views.executor", "pid": 34730, "request_id": "9ff7fb9bde7b460e96ef475ad5ba36c0", "schema_name": "public", "timestamp": "2026-01-02T13:27:15.092827"}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug/confirmedConfirmed bugs

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions