File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
## [ 2.0.0] unreleased
18
18
19
19
### Changed
20
- * #1093 Changed to implement [ hashed] ( https://docs.djangoproject.com/en/stable/topics/auth/passwords/ )
20
+ * #1093 ( ** Breaking ** ) Changed to implement [ hashed] ( https://docs.djangoproject.com/en/stable/topics/auth/passwords/ )
21
21
client_secret values. This is a ** breaking change** that will migrate all your existing
22
22
cleartext ` application.client_secret ` values to be hashed with Django's default password hashing algorithm
23
23
and can not be reversed. When adding or modifying an Application in the Admin console, you must copy the
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ def test_view_post_valid_client_creds_basic_auth(self):
304
304
305
305
def test_view_post_invalid_client_creds_basic_auth (self ):
306
306
"""Must fail for invalid client credentials"""
307
- auth_headers = get_basic_auth_header (self .application .client_id , CLEARTEXT_SECRET + " _so_wrong" )
307
+ auth_headers = get_basic_auth_header (self .application .client_id , f" { CLEARTEXT_SECRET } _so_wrong" )
308
308
response = self .client .post (
309
309
reverse ("oauth2_provider:introspect" ), {"token" : self .valid_token .token }, ** auth_headers
310
310
)
@@ -341,7 +341,7 @@ def test_view_post_invalid_client_creds_plaintext(self):
341
341
{
342
342
"token" : self .valid_token .token ,
343
343
"client_id" : self .application .client_id ,
344
- "client_secret" : CLEARTEXT_SECRET + " _so_wrong" ,
344
+ "client_secret" : f" { CLEARTEXT_SECRET } _so_wrong" ,
345
345
},
346
346
)
347
347
self .assertEqual (response .status_code , 403 )
You can’t perform that action at this time.
0 commit comments