-
Notifications
You must be signed in to change notification settings - Fork 808
Description
Describe the bug
I am attempting to update from 2.3.0 to 2.4.0. I have updated the package and begun to test my endpoints.
To start I am trying to exchange a username and password for a token. This is the most basic and important of my endpoints.
Upon submitting a username and pw in JSON format through the built in REST GUI I am greeted with:
JSONDecodeError at /authentication/token/ Expecting value: line 1 column 1 (char 0)
When I dig into this error it's much more complicated and odd.
psycopg.errors.UndefinedColumn: column oauth2_provider_application.hash_client_secret does not exist LINE 1: ...", "oauth2_provider_application"."client_secret", "oauth2_pr...
I interpret this to be saying:
The table oauth2_provider_application
is missing the field hash_client_secret
. I can confirm that this is true in looking at my database.
But I thought this was handled by the migration I ran to upgrade to 2.0.0? This has been running just fine on 2.0, 2.1, 2.2, and 2.3.
Reading through the changelog I don't see anything relating to this that has changed and I can't seem to find any upgrade guide, which I sort of remember, but might be getting confused with another package.
To Reproduce
My only settings are:
OAUTH2_PROVIDER = { 'PKCE_REQUIRED': False, 'ACCESS_TOKEN_EXPIRE_SECONDS': 2592000 # 30 days, }
I am aware PKCE defaults to True now and I am working on moving in that direction.
Version
2.4.0
- I have tested with the latest published release and it's still a problem.
- I have tested with the master branch and it's still a problem.