mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Change Tokens to ApiKey
Added name to ApiKey model
This commit is contained in:
@@ -2,7 +2,7 @@ from flask import request, jsonify, _request_ctx_stack
|
||||
from client.authentication import decode_jwt_token, get_token_issuer
|
||||
from client.errors import TokenDecodeError, TokenRequestError, TokenExpiredError, TokenPayloadError
|
||||
|
||||
from app.dao.tokens_dao import get_unsigned_token
|
||||
from app.dao.api_key_dao import get_unsigned_secret
|
||||
|
||||
|
||||
def authentication_response(message, code):
|
||||
@@ -49,5 +49,5 @@ def requires_auth():
|
||||
def fetch_client(client):
|
||||
return {
|
||||
"client": client,
|
||||
"secret": get_unsigned_token(client)
|
||||
"secret": get_unsigned_secret(client)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user