A terrible backend for auth-source to use the pa password manager.
  • Emacs Lisp 100%
Find a file
2026-02-14 01:52:02 +00:00
auth-source-pa.el Use backquote 2026-02-14 01:52:02 +00:00
COPYING Initial commit 2026-02-13 22:01:47 +00:00
README.md Initial commit 2026-02-13 22:01:47 +00:00

auth-source-pa

A terrible backend for auth-source to use the pa password manager. This is about the first Emacs Lisp I've ever written, I just hacked enough together (with much reference to auth-source-pass) to let me use Magit Forge with GitHub. Patches are more than welcome.

Usage

Load the .el file, call auth-source-pa-enable. Uses the auth-source :host as the name of the pa entry. Expects the first line of the entry to be the :secret, the second line (if present) to be the :user.

For example, if you can do this in the shell:

$ pa show example.com
hunter2
user

You're probably on the right track.