Fix TypeError Unicode when using hashlib.
This commit is contained in:
parent
f24445e421
commit
53166fb9ea
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class AuthorizeEndpoint(object):
|
||||||
origin=client_origin,
|
origin=client_origin,
|
||||||
browser_state=self.request.COOKIES['op_browser_state'],
|
browser_state=self.request.COOKIES['op_browser_state'],
|
||||||
salt=salt)
|
salt=salt)
|
||||||
session_state = sha256(session_state).hexdigest()
|
session_state = sha256(session_state.encode('utf-8')).hexdigest()
|
||||||
session_state += '.' + salt
|
session_state += '.' + salt
|
||||||
if self.grant_type == 'authorization_code':
|
if self.grant_type == 'authorization_code':
|
||||||
query_params['session_state'] = session_state
|
query_params['session_state'] = session_state
|
||||||
|
|
Loading…
Reference in a new issue