reifydb_core/interface/catalog/authentication.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4use std::collections::HashMap;
5
6use reifydb_type::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}