Skip to content

Conversation

boltlessengineer
Copy link
Contributor

@boltlessengineer boltlessengineer commented Feb 14, 2025

Implement Basic and Digest authorization tokens which are both supported in intellij's http client.

Fixes #483

  • Implement Basic authorization
  • Implement Digest authorization
    • Refactor to make chained requests possible
    • Refactor to correctly parse chained response (trace)
    • Actually implement the Digest authorization.

Edit: add todos to show progress

@boltlessengineer boltlessengineer changed the title feat/interpret auth tokens feat: interpret auth tokens Feb 14, 2025
@boltlessengineer
Copy link
Contributor Author

Basic is easy, but implementing Digest seems to require some work as rest.nvim needs to send multiple requests in same go.

Add request hook to convert "Authorization: Basic username:passeord" to
"Authorization: Basic <base64-encoded>" before reqeust.
@boltlessengineer boltlessengineer force-pushed the feat/interpret-auth-tokens branch from bee3e6a to fc8ad47 Compare March 10, 2025 04:46
@stephenprater
Copy link

stephenprater commented May 13, 2025

I think Basic is way more common that Digest - any chance we could go ahead and merge the Basic code path and come back to do Digest?

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.

Support Digest auth
2 participants