File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010
1111import binascii
1212import datetime
13- import hashlib
13+ import hmac
1414import json
1515import os
1616import re
@@ -611,7 +611,7 @@ def logout_available(self):
611611 """Whether a LogoutHandler is needed."""
612612 return True
613613
614- def cookie_secret_hook (self , h : hashlib . _Hash ) -> hashlib . _Hash :
614+ def cookie_secret_hook (self , h : hmac . HMAC ) -> hmac . HMAC :
615615 """Update cookie secret input
616616
617617 Subclasses may call `h.update()` with any credentials that,
@@ -753,7 +753,7 @@ def validate_security(
753753 self .log .critical (_i18n ("\t $ python -m jupyter_server.auth password" ))
754754 sys .exit (1 )
755755
756- def cookie_secret_hook (self , h : hashlib . _Hash ) -> hashlib . _Hash :
756+ def cookie_secret_hook (self , h : hmac . HMAC ) -> hmac . HMAC :
757757 """Include password in cookie secret.
758758
759759 This makes it so changing the password invalidates cookies.
You can’t perform that action at this time.
0 commit comments