Load a list of clients
This commit is contained in:
@ -2,7 +2,7 @@ use std::path::{Path, PathBuf};
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
use crate::constants::USERS_LIST_FILE;
|
||||
use crate::constants::{CLIENTS_LIST_FILE, USERS_LIST_FILE};
|
||||
|
||||
/// Basic OIDC provider
|
||||
#[derive(Parser, Debug, Clone)]
|
||||
@ -41,4 +41,8 @@ impl AppConfig {
|
||||
pub fn users_file(&self) -> PathBuf {
|
||||
self.storage_path().join(USERS_LIST_FILE)
|
||||
}
|
||||
|
||||
pub fn clients_file(&self) -> PathBuf {
|
||||
self.storage_path().join(CLIENTS_LIST_FILE)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user