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

Implement pizauth revoke. #30

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Implement pizauth revoke. #30

merged 2 commits into from
Jan 9, 2024

Conversation

ltratt
Copy link
Owner

@ltratt ltratt commented Jan 2, 2024

Currently this is local-only as OAuth2 provides no standard way of revoking remote tokens (though some providers do provide ad-hoc extensions to do so).

Fixes #29. @hseg Please see if this works for you (I have lightly, but not yet extensively, tested it).

@hseg
Copy link
Contributor

hseg commented Jan 2, 2024

Will check tomorrow, thanks!

@ltratt
Copy link
Owner Author

ltratt commented Jan 7, 2024

@hseg Any luck with this one?

@hseg
Copy link
Contributor

hseg commented Jan 7, 2024 via email

@hseg
Copy link
Contributor

hseg commented Jan 7, 2024 via email

@hseg
Copy link
Contributor

hseg commented Jan 7, 2024 via email

@ltratt
Copy link
Owner Author

ltratt commented Jan 7, 2024

If you have a suggested patch for the bash completion, I'd very happily incorporate it!

@hseg
Copy link
Contributor

hseg commented Jan 8, 2024 via email

ltratt and others added 2 commits January 8, 2024 07:54
Currently this is local-only as OAuth2 provides no standard way of
revoking remote tokens (though some providers do provide ad-hoc
extensions to do so).
@ltratt
Copy link
Owner Author

ltratt commented Jan 8, 2024

@hseg I had to slightly tweak the whitespace, so please check that c8e5ff2 still does what you hope.

pkg-config --variable completionsdir bash-completion

Using this should be easy, though interestingly on the Linux box I have access to it returns /usr/share/bash-completion/completions rather than /usr/share/bash-completion/ ?

@hseg
Copy link
Contributor

hseg commented Jan 8, 2024

Ah, you're right -- misread the installation scripts I was looking at.

The directive doesn't seem to be universally followed, though -- indeed, on my
machine, only 5/64 packages installing completions actually bother checking with
pkg-config: gstreamer, libxkbcommon, p11-kit, systemd, tracker3, and
util-linux. And some packages completely ignore the /usr/share/ default and
instead install to /etc/bash_completion.d/, eg youtube-dl (though for such
packages, the PKGBUILD files redirect the installation explicitly to
/usr/share/bash-completion/completions

So it's up to you if you want to do things "properly" -- I can always just move
the completions to the right place in the PKGBUILD

@ltratt
Copy link
Owner Author

ltratt commented Jan 9, 2024

I'm going to merge this PR, and investigate the pkg-config aspect in another PR.

@ltratt ltratt merged commit 2b04c2f into master Jan 9, 2024
5 checks passed
@hseg
Copy link
Contributor

hseg commented Jan 9, 2024 via email

@ltratt
Copy link
Owner Author

ltratt commented Jan 9, 2024

Might you be able to raise a PR with the necessary changes?

@ltratt ltratt deleted the revoke branch January 9, 2024 19:47
@hseg
Copy link
Contributor

hseg commented Jan 10, 2024

I'm going to merge this PR, and investigate the pkg-config aspect in another PR.

OK, in the meantime I pushed a PKGBUILD to AUR moving the bash completion to /usr/share/bash-completion/completions/ where it's expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request]: Add verbs forcing notification/cancelling authentication
2 participants