mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-25 18:07:32 +00:00
21 lines
377 B
Rust
21 lines
377 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,
|
||
|
|
},
|
||
|
|
|
||
|
|
#[clap(name = "unlink")]
|
||
|
|
OidcUnlink {
|
||
|
|
user_id: String,
|
||
|
|
},
|
||
|
|
}
|