File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ Frederico Vieira
6161Gaël Utard
6262Glauco Junior
6363Giovanni Giampauli
64+ Hamid Hashemi
6465Hasan Ramezani
6566Hiroki Kiyohara
6667Hossein Shakiba
@@ -129,4 +130,5 @@ Yuri Savin
129130Miriam Forner
130131Alex Kerkum
131132Tuhin Mitra
132- q0w
133+ q0w
134+
Original file line number Diff line number Diff line change @@ -445,9 +445,11 @@ def _get_token_from_authentication_server(
445445 expires , timezone = get_timezone (oauth2_settings .AUTHENTICATION_SERVER_EXP_TIME_ZONE )
446446 )
447447
448+ token_checksum = hashlib .sha256 (token .encode ("utf-8" )).hexdigest ()
448449 access_token , _created = AccessToken .objects .update_or_create (
449- token = token ,
450+ token_checksum = token_checksum ,
450451 defaults = {
452+ "token" : token ,
451453 "user" : user ,
452454 "application" : None ,
453455 "scope" : scope ,
You can’t perform that action at this time.
0 commit comments