PIZAUTH(1)
π PIZAUTH(1) π
okay so this is the General Commands Manual page for pizauth, and we are gonna get you fluent in it, no cap. Itβs giving βOAuth2 daemon with main character energyβ, and honestly? Obsessed.
πΈ NAME πΈ
pizauth β OAuth2 authentication daemon
β¨ SYNOPSIS β¨
pizauth command
π DESCRIPTION π
okay so pizauth requests, shows, and refreshes OAuth2 tokens. Itβs formed of two components: a persistent βserverβ which interacts with the user to obtain tokens, and refreshes them as necessary; and a command-line interface which can be used by other programs to show the OAuth2 token for a current account.
The top-level commands are:
dumpβ writes the current pizauth state tostdout: this can later be fed back into pizauth withrestore. The dump format is stable within a pizauth major release (but not across major releases) and stable across platforms, though it includes timestamps that may be affected by clock drift on either the machine performingdumporrestore. Clock drift does not affect security, though it may cause dumped access tokens to be refreshed unduly early or late upon a restore. Refreshed access tokens will then be refreshed at the expected intervals.
β οΈ note that while the dump output may look like it is encrypted, it is trivial for an attacker to recover access and refresh tokens from it. It is strongly recommended that you use external encryption on the output so that your data cannot be compromised. This is not a drill, bestie. π₯
info [-j]β writes output about pizauth tostdoutincluding: the cache directory path; the config file path; and pizauth version. Defaults to human-readable output in an unspecified format that may change freely between pizauth versions.-jβ specifies JSON output. Theinfo_format_versionfield is an integer value specifying the version of the JSON output: if incompatible changes are made, this integer will be monotonically increased.
refresh [-u] accountβ request a refresh of the access token for account. Exits with0upon success. If there is not currently a valid access or refresh token, reports an error tostderr, initiates a new token request, and exits with1. Unless-uis specified, the error will include an authorization URL. Note that this command does not block and will not start a new refresh if one is ongoing.-uβ when specified, the error wonβt include an authorization URL (because unless-uis specified, it will include one).
reloadβ reload the serverβs configuration. Exits with0upon success or1if there is a problem in the configuration.restoreβ reads previously dumped pizauth state fromstdinand updates those parts of the current state it determines to be less useful than the dumped state. This does not change the running instanceβs configuration: any changes in security relevant configuration between the dumping and restoring pizauth instances causes those parts of the dump to be silently ignored. Seedumpfor information about the dump format, timestamp warnings, and encryption suggestions.revoke accountβ removes any token, and cancels any ongoing authentication, for account. Note that OAuth2 provides no standard way of remotely revoking a token:revokethus only affects the local pizauth instance. Exits with0upon success.server [-c config-file] [-dv]β start the server. If not specified with-c, pizauth checks for the configuration file (in order) at:$XDG_CONFIG_HOME/pizauth.conf,$HOME/.config/pizauth.conf. The server will daemonise itself unless-dis specified. Exits with0if the server started successfully or1otherwise.-c config-fileβ use this config file; if itβs not specified with-c, pizauth checks the two paths above in order.-dβ the exception to the daemonise rule: if-dis specified, the server does not daemonise itself.-vβ enables more verbose logging.-vcan be used up to 4 times, with each repetition increasing the quantity of logging.
show [-u] accountβ if there is an access token for account, print that access token tostdoutand exit with0. If there is not currently a valid access token, prints an error tostderrand exits with1. If refreshing might obtain a valid access token, refreshing is initiated in the background. Otherwise (unless-uis specified), the error will include an authorization URL. Note that this command does not block: commands must expect that they might encounter an error when showing an access token.-uβ when specified, the error wonβt include an authorization URL (because otherwise, unless-uis specified, it will include one).
shutdownβ shut the server down. Note that shutdown occurs asynchronously: the server may still be alive for a period of time after this command returns.statusβ writes output about the current accounts and whether they have access tokens tostdout. The format is human-readable and in an unspecified format that may change freely between pizauth versions.
π¦ SEE ALSO π¦
π AUTHORS π
pizauth was written by Laurence Tratt https://tratt.net/laurie/
π Debian β’ September 13, 2022 β’ PIZAUTH(1) π
π¦ where this page comes from
- nixos 26.05: pizauth 1.0.11
- nixpkgs unstable: pizauth 1.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms