LocalAI
LocalAI copied to clipboard
Add WebUI API token authorization
Description
This PR fixes #2227 (tracked in #2156) I've added a simple (we can't use fancy template resources without auth) html login page for token input, which pushes xhr request to the new /login handler, which is sets a 24hr valid cookie for a token. The v2keyauth is now looking for token field in cookies too.
Notes for Reviewers
Signed commits
- [ ] Yes, I signed my commits.