Ejemplo n.º 1
0
class OAuthAuthorizationCode(BaseModel):
    code = CharField(index=True, unique=True, null=True)
    code_name = CharField(index=True, unique=True)
    code_credential = CredentialField()
Ejemplo n.º 2
0
class OAuthAccessToken(BaseModel):
    token_name = CharField(index=True, unique=True)
    token_code = CredentialField()
    access_token = CharField(index=True)