LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Add WebUI API token authorization

Open mintyleaf opened this issue 3 months ago • 2 comments

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.

mintyleaf avatar Nov 18 '24 23:11 mintyleaf