| 58 | |
| 59 | |
| 60 | class 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 | |
| 69 | class Token(db.Model, OAuth2TokenMixin): |
no outgoing calls