You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
something like that doesn't work, swagger doesn't send specific header, but when I use global security option - everything is ok.
That's a Litestar code with some DI features, I'm looking to override how the security works for a route (I have access_token variable from Authorization header at the route level, and I have global Security Schema that works with Authorization header, but the route level Authorization header doesn't override global)
Steps to reproduce
1. Go to Swagger docs
2. Try to pass Authorization header via endpoint header form
3. Send a request
4. See error
Description
Is it possible to override Bearer Security Scheme header in specific route?
URL to code causing the issue
No response
MCVE
something like that doesn't work, swagger doesn't send specific header, but when I use global security option - everything is ok.
That's a Litestar code with some DI features, I'm looking to override how the security works for a route (I have access_token variable from Authorization header at the route level, and I have global Security Schema that works with Authorization header, but the route level Authorization header doesn't override global)
Steps to reproduce
Screenshots
"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"
Logs
No response
Litestar Version
2.12.1
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: