Skip to content

feat: replace manual Header auth with HTTPBearer in all protected end…#8

Merged
luisfponce merged 1 commit intomainfrom
feature/bearer-token-auth-docs
Mar 3, 2026
Merged

feat: replace manual Header auth with HTTPBearer in all protected end…#8
luisfponce merged 1 commit intomainfrom
feature/bearer-token-auth-docs

Conversation

@GrolarStudios
Copy link
Collaborator

…points

  • Add HTTPBearer scheme and get_current_user dependency in auth_service.py
  • Add validar_jwt_raw() to validate clean tokens (without 'Bearer ' prefix)
  • Update users.py, auths.py and prompts.py to use Depends(get_current_user)
  • Bearer token now shows as Authorize button in Swagger /docs UI

…points

- Add HTTPBearer scheme and get_current_user dependency in auth_service.py
- Add validar_jwt_raw() to validate clean tokens (without 'Bearer ' prefix)
- Update users.py, auths.py and prompts.py to use Depends(get_current_user)
- Bearer token now shows as Authorize button in Swagger /docs UI
return token

# Validar un token
# Validar un token con prefijo "Bearer" (compatibilidad legado)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably I'd remove traces of english translations.. legacy comes from "old fashion way of doing stuff" not literaly "legado" lol
for the rest LGTM!

@luisfponce luisfponce merged commit 950030e into main Mar 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants