diff --git a/app/main.py b/app/main.py index c13e81b..b6e4b85 100644 --- a/app/main.py +++ b/app/main.py @@ -204,7 +204,7 @@ async def _client_token(): content = jws.sign(payload, key=jwt_encode_key, headers=None, algorithm=ALGORITHMS.RS256) response = StreamingResponse(iter([content]), media_type="text/plain") - filename = f'client_configuration_token_{datetime.now().strftime("%d-%m-%y-%H-%M-%S")}' + filename = f'client_configuration_token_{datetime.now().strftime("%d-%m-%y-%H-%M-%S")}.tok' response.headers["Content-Disposition"] = f'attachment; filename={filename}' return response