Class AuthController

Assembly: redb.Tsak.Core.dll

API key management: create, list, revoke keys.
POST /api/auth/keys — create new key (returns raw key once)
GET /api/auth/keys — list all keys (no raw keys)
DELETE /api/auth/keys/{id} — revoke a key

[Route("/api/auth")]
[RequiresRole(new string[] { "admin" })]
public class AuthController : RedbController

Inheritance

Object→RedbController→AuthController

Inherited Members

Methods

CreateKey(CreateKeyRequest?)

[HttpPost("/keys")]
public Task<object> CreateKey(CreateKeyRequest? request)

ListKeys()

[HttpGet("/keys")]
public Task<object> ListKeys()

RevokeKey(string)

[HttpDelete("/keys/{id}")]
public Task<object?> RevokeKey(string id)