diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/fetch/api/resources/authentication.py')
-rw-r--r-- | tests/wpt/web-platform-tests/fetch/api/resources/authentication.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py b/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py deleted file mode 100644 index 8b6b00b0873..00000000000 --- a/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py +++ /dev/null @@ -1,14 +0,0 @@ -def main(request, response): - user = request.auth.username - password = request.auth.password - - if user == b"user" and password == b"password": - return b"Authentication done" - - realm = b"test" - if b"realm" in request.GET: - realm = request.GET.first(b"realm") - - return ((401, b"Unauthorized"), - [(b"WWW-Authenticate", b'Basic realm="' + realm + b'"')], - b"Please login with credentials 'user' and 'password'") |