mod app_password;
mod auth;
mod client;
mod error;
mod metrics;
use std::path::PathBuf;
pub use auth::{
Authenticator, AuthenticatorConfig, ClaimMetadata, ClaimTokenType, Claims,
DEFAULT_REFRESH_DROP_FACTOR, DEFAULT_REFRESH_DROP_LRU_CACHE_SIZE,
};
pub use client::tokens::{ApiTokenArgs, ApiTokenResponse};
pub use client::Client;
pub use error::Error;
use uuid::Uuid;
pub use crate::app_password::{AppPassword, AppPasswordParseError};
#[derive(Debug, Clone, clap::Parser)]
pub struct FronteggCliArgs {
#[clap(
long,
env = "FRONTEGG_TENANT",
requires_all = &["frontegg-api-token-url", "frontegg-admin-role"],
value_name = "UUID",
)]
frontegg_tenant: Option<Uuid>,
#[clap(long, env = "FRONTEGG_JWK", requires = "frontegg-tenant")]
frontegg_jwk: Option<String>,
#[clap(long, env = "FRONTEGG_JWK_FILE", requires = "frontegg-tenant")]
frontegg_jwk_file: Option<PathBuf>,
#[clap(long, env = "FRONTEGG_API_TOKEN_URL", requires = "frontegg-tenant")]
frontegg_api_token_url: Option<String>,
#[clap(long, env = "FRONTEGG_ADMIN_ROLE", requires = "frontegg-tenant")]
frontegg_admin_role: Option<String>,
}