[Bug]: max username length (16) hit with OIDC #728

Closed
opened 2026-02-04 21:06:54 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @madduck on GitHub (Jun 5, 2025).

Where is the problem occurring?

I encountered the problem while interacting with the server (Backend)

What browsers are you seeing the problem on?

Firefox

Current behavior

When users use OIDC to sign up, some get an error and in the logs it says something about the maximum length of the username being 16. I am sorry, I do not have to error anymore, and the user has also meanwhile onboarded, I think after I set OIDC_IGNORE_USERNAME=true this was possible.

Desired behavior

Please make the username length configurable.

Steps to reproduce

Configure OIDC, create a user with a long username, login.

Other information

No response

Originally created by @madduck on GitHub (Jun 5, 2025). ### Where is the problem occurring? I encountered the problem while interacting with the server (Backend) ### What browsers are you seeing the problem on? Firefox ### Current behavior When users use OIDC to sign up, some get an error and in the logs it says something about the maximum length of the username being 16. I am sorry, I do not have to error anymore, and the user has also meanwhile onboarded, I think after I set `OIDC_IGNORE_USERNAME=true` this was possible. ### Desired behavior Please make the username length configurable. ### Steps to reproduce Configure OIDC, create a user with a long username, login. ### Other information _No response_
OVERLORD added the enhancement label 2026-02-04 21:06:54 +03:00
Author
Owner

@meltyshev commented on GitHub (Jun 10, 2025):

I think we can increase the maximum length (to 32) when creating a user via OIDC. I'll test this and implement the change now.

@meltyshev commented on GitHub (Jun 10, 2025): I think we can increase the maximum length (to 32) when creating a user via OIDC. I'll test this and implement the change now.
Author
Owner

@madduck commented on GitHub (Jun 11, 2025):

I think we can increase the maximum length (to 32) when creating a user via OIDC. I'll test this and implement the change now.

A hack for now, just wondering if there isn't a way to make that number configurable? I understand it informs the database schema (though most databases nowadays have STRING or the like and VARCHAR isn't really necessary anymore), but it could be an install-time thing.

Thanks,
Martin

@madduck commented on GitHub (Jun 11, 2025): > I think we can increase the maximum length (to 32) when creating a user via OIDC. I'll test this and implement the change now. A hack for now, just wondering if there isn't a way to make that number configurable? I understand it informs the database schema (though most databases nowadays have `STRING` or the like and `VARCHAR` isn't really necessary anymore), but it could be an install-time thing. Thanks, Martin
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#728