LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Add WebUI API token authorization

Open mintyleaf opened this issue 1 year 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

Deploy Preview for localai ready!

Name Link
Latest commit 7e66ec894c99a6c056b62e009cebca77ddd1134b
Latest deploy log https://app.netlify.com/sites/localai/deploys/673cb2f7dd29f20008556b92
Deploy Preview https://deploy-preview-4197--localai.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Nov 18 '24 23:11 netlify[bot]

This is looking nice, thank you! just few small nits

mudler avatar Nov 19 '24 07:11 mudler