Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: pizauth (Command-line OAuth2 authentication daemon) #53263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dkwo
Copy link
Contributor

@dkwo dkwo commented Nov 29, 2024

This could be a nice alternative to mutt_oauth2.py

  • I tested the changes in this PR: tested with google and microsoft, as well as dinit service.
  • This new package conforms to the package requirements: yes
  • I built this PR locally for my native architecture, (x86_64-glibc)

@dkwo dkwo marked this pull request as draft November 29, 2024 21:23
@classabbyamp classabbyamp added the new-package This PR adds a new package label Nov 30, 2024
@dkwo dkwo marked this pull request as ready for review December 1, 2024 00:49
@dkwo
Copy link
Contributor Author

dkwo commented Dec 1, 2024

Tested the dinit user service as well, with some help from upstream dinit:
mbsync

type = process
env-file = env-var-xdg
command = /usr/bin/snooze -H* -M 5/10 /bin/sh -c "/usr/bin/mbsync -a && /usr/bin/notmuch new"
log-type = buffer
depends-on: pizauth

pizauth

type = scripted
env-file = env-var-xdg
load-options = export-passwd-vars
command = /bin/sh -c "sleep 1; age -d -i ${HOME}/.passage/identities ${XDG_STATE_HOME}/pizauth.age | pizauth restore"
stop-command = /bin/sh -c "pizauth dump | age -e -r ageKEY -o ${XDG_STATE_HOME}/pizauth.age"
log-type = buffer
depends-on: pizauth-daemon

pizauth-daemon

type = process
env-file = env-var-xdg
command = /usr/bin/pizauth server -vvvv -d
stop-command = /usr/bin/pizauth shutdown
log-type = buffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants