mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
try using truststore
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
import uuid
|
||||
import truststore
|
||||
|
||||
from flask import current_app
|
||||
from sqlalchemy import select
|
||||
truststore.inject_into_ssl() # noqa
|
||||
|
||||
from app import db
|
||||
from app.dao.api_key_dao import save_model_api_key
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
from app.enums import KeyType
|
||||
from app.models import ApiKey
|
||||
from notifications_python_client.authentication import create_jwt_token
|
||||
import uuid # noqa
|
||||
|
||||
from flask import current_app # noqa
|
||||
from sqlalchemy import select # noqa
|
||||
|
||||
from app import db # noqa
|
||||
from app.dao.api_key_dao import save_model_api_key # noqa
|
||||
from app.dao.services_dao import dao_fetch_service_by_id # noqa
|
||||
from app.enums import KeyType # noqa
|
||||
from app.models import ApiKey # noqa
|
||||
from notifications_python_client.authentication import create_jwt_token # noqa
|
||||
|
||||
|
||||
def create_service_authorization_header(service_id, key_type=KeyType.NORMAL):
|
||||
|
||||
Reference in New Issue
Block a user