Skip to main content

reifydb_core/interface/catalog/
authentication.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2026 ReifyDB
3
4use std::collections::HashMap;
5
6use reifydb_value::value::identity::IdentityId;
7use serde::{Deserialize, Serialize};
8
9pub type AuthenticationId = u64;
10
11#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
12pub struct Authentication {
13	pub id: AuthenticationId,
14	pub identity: IdentityId,
15	pub method: String,
16	pub properties: HashMap<String, String>,
17}