tale / headplane

An advanced UI for juanfont/headscale
MIT License
73 stars 2 forks source link

Remove the requirement for `API_KEY` when not using OIDC. #3

Closed tale closed 2 months ago

tale commented 2 months ago

The API_KEY environment variable exists solely to issue new shorter-lived API keys for each successful OIDC based login. This is not required if login is completed via the "Bring your own API key" option on the login page.

Currently, if this is not set the UI will crash. This is a relatively simple fix, just a few parts of the code actually use the API_KEY variable, otherwise it defaults to the session's stored key.

tale commented 2 months ago

Resolved by a63f4e4d52df136812c395a8848ed887ba6683f5