Skip to content

feat: interpret auth tokens #529

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

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
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
1 participant