mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-27 11:19:56 -04:00
more
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user