forked from CGM_Public/pretix_original
Update oauthlib to ==3.1.* (#1538)
* Bumped oauthlib to ==3.1.* * Fix tests for oauthlib 3.1 In some cases, oauthlib now returns 400 instead of 401.
This commit is contained in:
committed by
Raphael Michel
parent
2ffb4edee9
commit
ff98ae3200
@@ -39,7 +39,7 @@ django-hijack>=2.1.10,<2.2.0
|
||||
jsonschema
|
||||
openpyxl
|
||||
django-oauth-toolkit==1.2.*
|
||||
oauthlib==2.1.*
|
||||
oauthlib==3.1.*
|
||||
django-jsonfallback>=2.1.2
|
||||
psycopg2-binary
|
||||
# Stripe
|
||||
@@ -63,4 +63,4 @@ redis==3.2.*
|
||||
django-phonenumber-field==3.0.*
|
||||
phonenumberslite==8.10.*
|
||||
python-bidi==0.4.* # Support for arabic in reportlab
|
||||
arabic-reshaper==2.0.15 # Support for Aabic in reportlab
|
||||
arabic-reshaper==2.0.15 # Support for Aabic in reportlab
|
||||
|
||||
@@ -145,7 +145,7 @@ setup(
|
||||
'django-hijack>=2.1.10,<2.2.0',
|
||||
'openpyxl',
|
||||
'django-oauth-toolkit==1.2.*',
|
||||
'oauthlib==2.1.*',
|
||||
'oauthlib==3.1.*',
|
||||
'urllib3==1.24.*', # required by current requests
|
||||
'django-phonenumber-field==3.0.*',
|
||||
'phonenumberslite==8.10.*',
|
||||
|
||||
@@ -478,7 +478,7 @@ def test_token_revoke_refresh_token(client, admin_user, organizer, application:
|
||||
'grant_type': 'refresh_token',
|
||||
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
||||
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
|
||||
assert resp.status_code == 401
|
||||
assert resp.status_code == 400
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@@ -573,4 +573,4 @@ def test_user_revoke(client, admin_user, organizer, application: OAuthApplicatio
|
||||
'grant_type': 'refresh_token',
|
||||
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
||||
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
|
||||
assert resp.status_code == 401
|
||||
assert resp.status_code == 400
|
||||
|
||||
Reference in New Issue
Block a user