(self, code, client)
| 125 | |
| 126 | class CodeGrantMixin: |
| 127 | def query_authorization_code(self, code, client): |
| 128 | try: |
| 129 | item = OAuth2Code.objects.get(code=code, client_id=client.client_id) |
| 130 | except OAuth2Code.DoesNotExist: |
| 131 | return None |
| 132 | |
| 133 | if not item.is_expired(): |
| 134 | return item |
| 135 | |
| 136 | def delete_authorization_code(self, authorization_code): |
| 137 | authorization_code.delete() |
nothing calls this directly
no test coverage detected