11import base64
22import json
33import logging
4- from typing import cast , Optional
4+ from typing import Optional , cast
55from uuid import UUID
66
77from fastapi import Depends , HTTPException , Request
2020from .settings import (
2121 BOT_INSTALLATION_TOKEN ,
2222 BOT_INSTALLATION_TOKEN_HEADER ,
23- BUGOUT_WEB3_SIGNATURE_APPLICATION_HEADER ,
23+ BUGOUT_APPLICATION_ID_HEADER ,
2424)
2525
2626logger = logging .getLogger (__name__ )
@@ -45,9 +45,7 @@ async def get_current_user(
4545 if token is None or token == "" :
4646 raise HTTPException (status_code = 404 , detail = "Access token not found" )
4747
48- signature_application : str = request .headers .get (
49- BUGOUT_WEB3_SIGNATURE_APPLICATION_HEADER
50- )
48+ signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER )
5149 application_id = None
5250 if signature_application is not None :
5351 try :
@@ -143,9 +141,7 @@ async def get_current_user_with_groups(
143141 if token is None or token == "" :
144142 raise HTTPException (status_code = 404 , detail = "Access token not found" )
145143
146- signature_application : str = request .headers .get (
147- BUGOUT_WEB3_SIGNATURE_APPLICATION_HEADER
148- )
144+ signature_application : str = request .headers .get (BUGOUT_APPLICATION_ID_HEADER )
149145 application_id = None
150146 if signature_application is not None :
151147 try :
0 commit comments