Files
ds_drone_bot/api/dependencies/__pycache__/auth.cpython-311.pyc
T

20 lines
1.3 KiB
Plaintext
Raw Normal View History

2025-07-24 14:27:56 +01:00
§
)LhHãó~ddlmZmZmZddlmZddlmZddlm Z edd¬¦«Z
ee
¦«fde d e fd
Z d S) é)Ú
HTTPExceptionÚDependsÚSecurity)Ú APIKeyHeader)Ú BaseRequest)ÚConfigÚ
AuthorizationF)ÚnameÚ
auto_errorÚapi_key_headerÚreturncƒóÞK|r| d¦«stddddœ¬¦«| d¦«d}|tjkrtddd dœ¬¦«|S)
zValidate API key from headerzBearer iÚ UnauthorizedzAPI key is missing or invalid.)ÚerrorÚmessage)Ú status_codeÚdetailú ézAPI key does not match.)Ú
startswithrÚsplitrÚAPI_KEY)r Útokens úI/Users/macbook/Desktop/blessing_ai/mkd/drone_bot/api/dependencies/auth.pyÚ get_api_keyrsèèà ð
 ×!:Ò!:¸9Ñ!EÔ!Eð
ÝØØ+Ð8XÐ
ñ
ô
ð
ð
× Ò  Ñ % aÔ (€Eà ÒÐÝØØ+Ð8QÐ
ñ
ô