Switch to using tailscale oauth api

This removes the need to update the API key every 90 days.
This commit is contained in:
Abel Luck 2024-07-17 09:48:30 +02:00
parent 2bf137847d
commit b195bd1e8f
3 changed files with 88 additions and 8 deletions

View file

@ -5,7 +5,13 @@ client = TestClient(app)
def get_settings_override() -> Settings:
return Settings(test_mode=True, tailnet="test", api_key="test", bearer_token="test")
return Settings(
test_mode=True,
tailnet="test",
client_id="test",
client_secret="test",
bearer_token="test",
)
app.dependency_overrides[get_settings] = get_settings_override