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

Class AuthorizationCode

tests/flask/test_oauth2/models.py:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60class AuthorizationCode(db.Model, OAuth2AuthorizationCodeMixin):
61 id = db.Column(db.Integer, primary_key=True)
62 user_id = db.Column(db.Integer, nullable=False)
63
64 @property
65 def user(self):
66 return db.session.get(User, self.user_id)
67
68
69class Token(db.Model, OAuth2TokenMixin):

Callers 2

save_authorization_codeFunction · 0.85
test_invalid_codeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_invalid_codeFunction · 0.68