MCPcopy Create free account
hub / github.com/authlib/authlib / query_authorization_code

Method query_authorization_code

tests/flask/test_oauth2/models.py:85–90  ·  view source on GitHub ↗
(self, code, client)

Source from the content-addressed store, hash-verified

83
84class CodeGrantMixin:
85 def query_authorization_code(self, code, client):
86 item = AuthorizationCode.query.filter_by(
87 code=code, client_id=client.client_id
88 ).first()
89 if item and not item.is_expired():
90 return item
91
92 def delete_authorization_code(self, authorization_code):
93 db.session.delete(authorization_code)

Callers

nothing calls this directly

Calls 1

is_expiredMethod · 0.45

Tested by

no test coverage detected