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

Basic Authentication (auth:) is not working in Artillery #3346

Open
resource-not-found-blank opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@resource-not-found-blank

I think auth: (Basic Authentication) no longer works as described in the documentation

Version info:

Artillery: 2.0.20
Node.js:   v22.8.0
OS:        darwin

A test.yaml file:

config:
  target: http://asciiart.artillery.io:8080
  phases:
    - duration: 1
      arrivalRate: 1
scenarios:
  - flow:
      - get:
          url: '/dino'
          auth:
            user: username
            pass: password

Run the test with debug mode enabled to inspect request headers:

DEBUG=http* artillery run test.yaml -s

I expected to see this happen:

I expected to see the Authorization header in the request headers.

Instead, this happened:

No Authorization header was present in the request.

image

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

1 participant