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
§
2025-08-15 16:48:31 +00:00
Š›hHãó~ddlmZmZmZddlmZddlmZddlm Z edd¬¦«Z
2025-07-24 14:27:56 +01:00
ee
¦«fde d e fd
Z d S) é)Ú
HTTPExceptionÚDependsÚSecurity)Ú APIKeyHeader)Ú BaseRequest)ÚConfigÚ
AuthorizationF)ÚnameÚ
2025-08-15 16:48:31 +00:00
auto_errorÚapi_key_headerÚreturncƒóÞK|r| d¦«stddddœ¬¦«| d¦«d}|tjkrtddd dœ¬¦«|S)
2025-07-24 14:27:56 +01:00
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 ú./root/dr/ds_drone_bot/api/dependencies/auth.pyÚ get_api_keyrsèèà ð
 ×!:Ò!:¸9Ñ!EÔ!Eð
ÝØØ+Ð8XÐ
ñ
ô
ð
ð
× Ò  Ñ % aÔ (€Eà ÒÐÝØØ+Ð8QÐ
ñ
ô