Skip to content

Conversation

@richardARPANET
Copy link

@richardARPANET richardARPANET commented Oct 12, 2025

Fix for:

value too long for type character varying(255)

refresh_token = get_refresh_token_model().objects.create(
        user=org_user,
        token=token_data['refresh_token'],
        application=application,
        access_token=access_token,
        token_family=token_family,
    )

255 is far too short, as per OAuth guidelines. changed to 8000. Now Microsoft OAuth works.

@richardARPANET richardARPANET changed the title Fix refresh token max length Fix refresh token max length (occurs with Microsoft OAuth) Oct 12, 2025
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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