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

fork with fixes #24

Open
mooseyboots opened this issue Apr 4, 2023 · 15 comments
Open

fork with fixes #24

mooseyboots opened this issue Apr 4, 2023 · 15 comments

Comments

@mooseyboots
Copy link

i forked this and the old emacs-oath lib, and pushed the known fixes to them:
https://codeberg.org/martianh/tumblesocks, and
https://codeberg.org/martianh/emacs-oauth.

@gleitz
Copy link

gleitz commented Apr 30, 2023

This is excellent, thank you!

I added both libraries to my path and I was good to go

@gcr
Copy link
Owner

gcr commented May 5, 2023

awesome !! do you mind if i merged your fixes into my branch?

@mooseyboots
Copy link
Author

mooseyboots commented May 6, 2023

of course not! i only forked because i didn't think you ever responded to activity here. the fixes i used are in issues here in your repo.

for tumblesocks we can just merge, but for oauth, you'll need to update the readme saying that users need to first load the patched fork of it (point to mine, or you fork a version of mine so it's all here under your username, and point to that), then load tumblesocks.

@gargle
Copy link

gargle commented Jul 5, 2023

It doesn't work anymore. oauth in elpa is 20230522.1900 now and it works in a different way. I'm still trying to figure out what's going wrong. I cloned https://codeberg.org/martianh/emacs-oauth and added it to my load-path to get the old version back.

@mooseyboots
Copy link
Author

mooseyboots commented Jul 5, 2023

that's weird, as emacs-oauth @ https://github.com/psanford/emacs-oauth was mothballed 19 April 2023.

@gargle
Copy link

gargle commented Jul 5, 2023

It seems that emacs-oauth is now at https://gitlab.com/fvdbeek/emacs-oauth. I tried to log an issue there but I'd have to register and gitlab asks for my credit card info :/

@mooseyboots
Copy link
Author

https://gitlab.com/fvdbeek/emacs-oauth/-/issues/1.

i found the commit that changed the function we had patched, but it doesn't force the unibyte, so looks like our patch still required. let's see what the maintainer says.

@gargle
Copy link

gargle commented Jul 5, 2023

Let's see, because it's complicated. It seems that the maintainer deleted all of the 'nonce' stuff in oauth.el and now assumes sasl is available. I remember doing (setq oauth-nonce-function 'oauth-internal-make-nonce) in my .emacs file. oauth-nonce-function is set to sasl-unique-id.

@fvdbeek
Copy link

fvdbeek commented Jul 5, 2023

I am the new maintainer of emacs-oauth, and it seems I broke the package by depending on a buggy HMAC-SHA1 implementation. It should be fixed by commit #4b8e9c6e.

I also removed the "nonce" stuff, all meant to simplify things. But I found an even better function to use than sasl-unique-id, so I could drop the dependency on sasl in commit #c55e402f. I assumed that sasl was omnipresent. @gargle: do you think that was a misconception?

I moved the repository to Gitlab, because that is my platform of choice. I never had to provide credit card info. Here I read that a debit/credit card is needed for a developer to run pipelines. @gargle: is it mandatory to create an account? Because then I should reconsider my preference.

@gargle
Copy link

gargle commented Jul 6, 2023 via email

@gargle
Copy link

gargle commented Jul 6, 2023 via email

@gargle
Copy link

gargle commented Jul 6, 2023

Hello again,

@fvdbeek, one little thing though, don't you have to define url-digest-auth-make-cnonce somewhere? I get an error and I feel embarrassed I didn't see it sooner. I'm not up to date with the emacs elisp eco system.

Greetings,

Johan

@fvdbeek
Copy link

fvdbeek commented Jul 6, 2023

Good morning, @folkert, everything works as expected. I had to delete my old token. Reauthentication went like a breeze. My tumblr dashboard is showing. No complaints from my side! Thanks for the quick response, Prettige dag!

Excellent, glad it is fixed. Goedenavond!

@fvdbeek
Copy link

fvdbeek commented Jul 6, 2023

@fvdbeek, one little thing though, don't you have to define url-digest-auth-make-cnonce somewhere? I get an error and I feel embarrassed I didn't see it sooner.

You need at least Emacs 26.1 for url-digest-auth-make-cnonce. Maybe this is a little too much asked for a library, and we first should depend on sasl for a while. So I reverted the commit.

@gargle
Copy link

gargle commented Jul 6, 2023 via email

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

No branches or pull requests

5 participants