Skip to content

Conversation

@riccardo-dev
Copy link

@riccardo-dev riccardo-dev commented Dec 4, 2025

Reason for the change

The code field in the OidcAuthenticationToken model previously used CharField(max_length=255), but the authorization codes returned by the CIE OIDC provider can exceed 255 characters. This caused:

automatic truncation at database level

token validation errors

inability to complete the OIDC Authorization Code Flow correctly

To fix this, we removed CharField(max_length=255), allowing the model to store authorization codes of arbitrary length.

This change aligns with the expected OIDC behaviour and does not introduce regressions for any other part of the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant