forked from Github-Mirrors/canaille
Implement token revokation
This commit is contained in:
parent
83e1e44e27
commit
3ebddf4817
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ class RefreshTokenGrant(_RefreshTokenGrant):
|
|||
return User.get(credential.oauthSubject)
|
||||
|
||||
def revoke_old_credential(self, credential):
|
||||
# TODO: implement revokation
|
||||
pass
|
||||
credential.revoke = True
|
||||
credential.save()
|
||||
|
||||
|
||||
class OpenIDImplicitGrant(_OpenIDImplicitGrant):
|
||||
|
|
Loading…
Reference in a new issue