This commit is contained in:
Kenneth Kehl
2023-08-15 10:35:34 -07:00
parent b9ba7d018b
commit fbf2f99d7b
3 changed files with 117 additions and 11 deletions

View File

@@ -679,9 +679,10 @@ class ServiceInboundApi(db.Model, Versioned):
@property
def bearer_token(self):
if self._bearer_token:
return encryption.decrypt(self._bearer_token)
return None
# Column is non-nullable
# if self._bearer_token:
return encryption.decrypt(self._bearer_token)
# return None
@bearer_token.setter
def bearer_token(self, bearer_token):
@@ -718,9 +719,10 @@ class ServiceCallbackApi(db.Model, Versioned):
@property
def bearer_token(self):
if self._bearer_token:
return encryption.decrypt(self._bearer_token)
return None
# There is a non-null constraint on this column
# if self._bearer_token:
return encryption.decrypt(self._bearer_token)
# return None
@bearer_token.setter
def bearer_token(self, bearer_token):
@@ -775,9 +777,10 @@ class ApiKey(db.Model, Versioned):
@property
def secret(self):
if self._secret:
return encryption.decrypt(self._secret)
return None
# Column is non-nullable
# if self._secret:
return encryption.decrypt(self._secret)
# return None
@secret.setter
def secret(self, secret):