Check credentials and configured API features
Returns the app/API version and configured features without checking external services. API-key requests also return that key's name, scope and expiry. Invalid or expired keys get a coded 401 before this handler runs. Browser sessions return mode=session. With APP_AUTH_DISABLED=true, mode=disabled means a supplied key has not been validated.
session<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
A successfully authenticated API key. An expired key gets a 401 instead.
apiVersion*stringappVersion*stringcapabilities*array<>Configured server features, independent of key scope and current service availability. crowdsecWrite also requires a read_write key or a browser session when auth is enabled.
expiresAt*|The key's expiry, or null if it never expires.
mode*stringname*stringscope*string"read""read_write"curl -X GET 'https://geometrikks.example.com/api/v1/auth/connection'{ "apiVersion": "string", "appVersion": "string", "capabilities": [ "crowdsec" ], "expiresAt": "2019-08-24T14:15:22Z", "mode": "apiKey", "name": "string", "scope": "read"}Revoke an API key DELETE
Deletes the key, so every request that sends it gets a 401 from then on. API keys get a 403 here; use a browser session.
Log in with the admin username and password POST
Checks the admin username and password, starts a browser session and sets its cookie. Wrong credentials get a 401, and so does every attempt while password login is off because only OIDC is set up. A 503 means the database is down and nobody can log in. With APP_AUTH_DISABLED=true it checks nothing and answers with `mode` set to `disabled`.