Skip to content

Support Digest auth #483

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

Open
1 of 2 tasks
svenXY opened this issue Oct 4, 2024 · 0 comments · May be fixed by #529
Open
1 of 2 tasks

Support Digest auth #483

svenXY opened this issue Oct 4, 2024 · 0 comments · May be fixed by #529
Labels
enhancement New feature or request

Comments

@svenXY
Copy link

svenXY commented Oct 4, 2024

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.11.0-dev-700+gbcae8be91f

Operating system/version

MacOS 14.7

Actual behavior

GET https://httpbin.io/digest-auth/auth/user/pass
Authorization: Digest user:pass
Accept:application/json

response:

### foo#2
GET https://httpbin.io/digest-auth/auth/user/pass
HTTP/1.1 401 Unauthorized

# @_RES
{
  "status_code": 401,
  "error": "Unauthorized"
}

# @_END

Expected behavior

As this is the official httpbin.io endpoint for digest authentication, it should answer with 200 OK

Steps to reproduce

Use your own repro.lua and try with a .http file containing

GET https://httpbin.io/digest-auth/auth/user/pass
Authorization: Digest user:pass
Accept:application/json

Other information

This works for e.g. kulala

Repro (lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "rest-nvim/rest.nvim",
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})
@svenXY svenXY added the bug Something isn't working label Oct 4, 2024
@boltlessengineer boltlessengineer linked a pull request Feb 14, 2025 that will close this issue
5 tasks
@boltlessengineer boltlessengineer added enhancement New feature or request and removed bug Something isn't working labels Feb 25, 2025
@boltlessengineer boltlessengineer changed the title Digest auth does not work Support Digest auth Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants