1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-03 22:45:01 +00:00

Return keys listing in auth options

This commit is contained in:
2021-05-14 11:12:41 +02:00
parent 3838cf3e03
commit 210dcb9597
6 changed files with 37 additions and 9 deletions

View File

@ -2,6 +2,8 @@
//!
//! @author Pierre Hubert
use webauthn_rs::proto::Credential;
#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)]
pub struct AdminID(u64);
@ -41,7 +43,7 @@ pub struct AdminKey {
pub id: u64,
pub admin_id: AdminID,
pub name: String,
pub key: String,
pub key: Credential,
}
/// Admin access token