{
  "test": "http-auth",
  "title": "HTTP authentication",
  "data_version": "1.0.0",
  "seed": 20261102,
  "page": "/access/http-auth/",
  "needs": "HTTP only",
  "difficulty": "Medium",
  "what_it_tests": "Basic auth with a 401 challenge, a bearer token, and a third area that answers 404 until you send credentials it never asks for.",
  "expect": {
    "areas": [
      {
        "url": "/access/http-auth/basic/",
        "scheme": "Basic",
        "send": "Authorization: Basic base64(reader:paper-lantern-7)",
        "without_credentials": {
          "status": 401,
          "www_authenticate": "Basic realm=\"Netweir test site\", charset=\"UTF-8\""
        },
        "wrong_credentials": {
          "status": 401
        }
      },
      {
        "url": "/access/http-auth/bearer/",
        "scheme": "Bearer",
        "send": "Authorization: Bearer nw-test-bearer-3f9c2a71d04e",
        "without_credentials": {
          "status": 401,
          "www_authenticate": "Bearer realm=\"Netweir test site\""
        },
        "wrong_credentials": {
          "status": 401
        }
      },
      {
        "url": "/access/http-auth/hidden/",
        "scheme": "Basic",
        "send": "Authorization: Basic base64(reader:paper-lantern-7)",
        "without_credentials": {
          "status": 404,
          "www_authenticate": null
        },
        "wrong_credentials": {
          "status": 404
        }
      }
    ],
    "credentials": {
      "basic": {
        "username": "reader",
        "password": "paper-lantern-7"
      },
      "bearer": "nw-test-bearer-3f9c2a71d04e"
    },
    "note": "The hidden area never challenges. Send Basic credentials with the first request."
  },
  "records": [
    {
      "area": "/access/http-auth/basic/",
      "code": "AUTH-BASIC",
      "sku": "NW-OFF-2407",
      "name": "Kestleford Folding Task Chair",
      "price": 214.49
    },
    {
      "area": "/access/http-auth/basic/",
      "code": "AUTH-BASIC",
      "sku": "NW-OFF-2414",
      "name": "Saltgrove Matte Task Chair",
      "price": 402
    },
    {
      "area": "/access/http-auth/basic/",
      "code": "AUTH-BASIC",
      "sku": "NW-OFF-2421",
      "name": "Brindlecote Low Meeting Chair",
      "price": 299.99
    },
    {
      "area": "/access/http-auth/basic/",
      "code": "AUTH-BASIC",
      "sku": "NW-OFF-2428",
      "name": "Vexmoor Folding Task Chair",
      "price": 297.49
    },
    {
      "area": "/access/http-auth/basic/",
      "code": "AUTH-BASIC",
      "sku": "NW-OFF-2435",
      "name": "Upwold Soft Meeting Chair",
      "price": 143.99
    },
    {
      "area": "/access/http-auth/bearer/",
      "code": "AUTH-BEARER",
      "sku": "NW-OFF-2442",
      "name": "Brindlecote Large Standing Desk",
      "price": 208.49
    },
    {
      "area": "/access/http-auth/bearer/",
      "code": "AUTH-BEARER",
      "sku": "NW-OFF-2449",
      "name": "Upwold Woven Corner Desk",
      "price": 319
    },
    {
      "area": "/access/http-auth/bearer/",
      "code": "AUTH-BEARER",
      "sku": "NW-OFF-2456",
      "name": "Saltgrove Folding Corner Desk",
      "price": 173.99
    },
    {
      "area": "/access/http-auth/bearer/",
      "code": "AUTH-BEARER",
      "sku": "NW-OFF-2463",
      "name": "Kestleford Tall Standing Desk",
      "price": 230.99
    },
    {
      "area": "/access/http-auth/bearer/",
      "code": "AUTH-BEARER",
      "sku": "NW-OFF-2470",
      "name": "Ardley Fen Twin Corner Desk",
      "price": 522.99
    },
    {
      "area": "/access/http-auth/hidden/",
      "code": "AUTH-HIDDEN",
      "sku": "NW-OFF-2477",
      "name": "Hollinsgate Low Desk Riser",
      "price": 301.99
    },
    {
      "area": "/access/http-auth/hidden/",
      "code": "AUTH-HIDDEN",
      "sku": "NW-OFF-2484",
      "name": "Pellwick Matte Standing Desk",
      "price": 335.49
    },
    {
      "area": "/access/http-auth/hidden/",
      "code": "AUTH-HIDDEN",
      "sku": "NW-OFF-2491",
      "name": "Kestleford Large Writing Desk",
      "price": 442.99
    },
    {
      "area": "/access/http-auth/hidden/",
      "code": "AUTH-HIDDEN",
      "sku": "NW-OFF-2498",
      "name": "Thistlecombe Studio Desk Riser",
      "price": 503.99
    },
    {
      "area": "/access/http-auth/hidden/",
      "code": "AUTH-HIDDEN",
      "sku": "NW-OFF-2505",
      "name": "Saltgrove Travel Corner Desk",
      "price": 412.49
    }
  ]
}
