add audiolog

This commit is contained in:
2025-03-27 20:50:51 -03:00
parent 5af61465f3
commit 5756451738
10 changed files with 54 additions and 60 deletions

View File

@@ -1,5 +1,3 @@
from layercake.dynamodb import DynamoDBCollection, DynamoDBPersistenceLayer
import auth as app
from auth import _parse_bearer_token
@@ -33,11 +31,8 @@ def test_bearer_jwt(lambda_context: LambdaContext):
def test_bearer_apikey(
dynamodb_seeds,
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
lambda_context: LambdaContext,
):
app.collect = DynamoDBCollection(dynamodb_persistence_layer)
event = {
'headers': {
'authorization': 'Bearer sk-MzI1MDQ0NTctZjEzMy00YzAwLTkzNmItNmFhNzEyY2E5ZjQw',