mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-22 00:17:33 +00:00
23 lines
442 B
Rust
23 lines
442 B
Rust
mod commands;
|
|
|
|
use clap::Subcommand;
|
|
use conduwuit::Result;
|
|
use conduwuit_macros::admin_command_dispatch;
|
|
|
|
#[admin_command_dispatch]
|
|
#[derive(Debug, Subcommand)]
|
|
pub enum OidcCommand {
|
|
/// Link a user ID to the given subject claim.
|
|
#[clap(name = "link")]
|
|
OidcLink {
|
|
user_id: String,
|
|
subject: String,
|
|
},
|
|
|
|
/// Unlink the given subject claim from its associated user ID.
|
|
#[clap(name = "unlink")]
|
|
OidcUnlink {
|
|
subject: String,
|
|
},
|
|
}
|