feat: get roles associted to api key

This commit is contained in:
2026-05-08 13:11:59 +02:00
parent eaf197f86e
commit b7e5e04fc0
5 changed files with 59 additions and 33 deletions
+8
View File
@@ -1,7 +1,15 @@
use uuid::Uuid;
#[derive(PartialEq, Eq, Clone, Debug)]
pub enum ApiKeyClaimsRoles {
Admin,
Read,
Write,
}
#[derive(Clone, Debug)]
pub struct ApiKeyClaims {
pub sub: Uuid,
pub api_key_id: Uuid,
pub roles: Vec<ApiKeyClaimsRoles>,
}