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
|
jsonschema
|
||||||
openpyxl
|
openpyxl
|
||||||
django-oauth-toolkit==1.2.*
|
django-oauth-toolkit==1.2.*
|
||||||
oauthlib==2.1.*
|
oauthlib==3.1.*
|
||||||
django-jsonfallback>=2.1.2
|
django-jsonfallback>=2.1.2
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
# Stripe
|
# Stripe
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ setup(
|
|||||||
'django-hijack>=2.1.10,<2.2.0',
|
'django-hijack>=2.1.10,<2.2.0',
|
||||||
'openpyxl',
|
'openpyxl',
|
||||||
'django-oauth-toolkit==1.2.*',
|
'django-oauth-toolkit==1.2.*',
|
||||||
'oauthlib==2.1.*',
|
'oauthlib==3.1.*',
|
||||||
'urllib3==1.24.*', # required by current requests
|
'urllib3==1.24.*', # required by current requests
|
||||||
'django-phonenumber-field==3.0.*',
|
'django-phonenumber-field==3.0.*',
|
||||||
'phonenumberslite==8.10.*',
|
'phonenumberslite==8.10.*',
|
||||||
|
|||||||
@@ -478,7 +478,7 @@ def test_token_revoke_refresh_token(client, admin_user, organizer, application:
|
|||||||
'grant_type': 'refresh_token',
|
'grant_type': 'refresh_token',
|
||||||
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
||||||
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
|
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
|
||||||
assert resp.status_code == 401
|
assert resp.status_code == 400
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
@@ -573,4 +573,4 @@ def test_user_revoke(client, admin_user, organizer, application: OAuthApplicatio
|
|||||||
'grant_type': 'refresh_token',
|
'grant_type': 'refresh_token',
|
||||||
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
|
||||||
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
|
('%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