Skip to content
Snippets Groups Projects
Commit 65b04ee1 authored by kaiyou's avatar kaiyou
Browse files

Fix a typo that broke oidc token verification

parent 358449bf
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class AuthorizationCodeMixin(object): ...@@ -86,7 +86,7 @@ class AuthorizationCodeMixin(object):
obj = AuthorizationCodeMixin.AuthorizationCode.unserialize( obj = AuthorizationCodeMixin.AuthorizationCode.unserialize(
utils.redis.hgetall("code:{}".format(code)) utils.redis.hgetall("code:{}".format(code))
) )
return self if obj and obj.client_id == client.client_id else None return obj if obj and obj.client_id == client.client_id else None
def delete_authorization_code(self, authorization_code): def delete_authorization_code(self, authorization_code):
utils.redis.delete("code:{}".format(authorization_code)) utils.redis.delete("code:{}".format(authorization_code))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment