pub enum TokenBroker {
Ortie,
Pizauth,
Oama,
}wizard only.Expand description
A well-known OAuth 2.0 token broker: an external CLI that owns the account’s refresh token and prints a fresh access token on stdout.
Himalaya (and the other Pimalaya tools) ship no OAuth flow of their
own; they call one of these on every connection. Reference
implementation (Ortie) first.
Variants§
Ortie
ortie, the Pimalaya OAuth 2.0 token broker.
Pizauth
pizauth, an OAuth 2.0 token daemon.
Oama
oama, the OAuth Anywhere Mail Agent.
Implementations§
Source§impl TokenBroker
impl TokenBroker
Sourcepub fn available() -> Vec<Self>
pub fn available() -> Vec<Self>
The known brokers, reference implementation first. Not OS-specific: all are cross-platform CLIs.
Sourcepub fn read_command(self, account: &str) -> Vec<String>
pub fn read_command(self, account: &str) -> Vec<String>
The argv (program + arguments, no shell) printing a fresh access
token for account on stdout — the value of the *.command
config field.
account is the broker’s own account handle: a name for ortie
and pizauth, the email address for oama. It defaults to the
Himalaya account name; the user adjusts it to match the broker’s
configuration.
Trait Implementations§
Source§impl Clone for TokenBroker
impl Clone for TokenBroker
Source§fn clone(&self) -> TokenBroker
fn clone(&self) -> TokenBroker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more