hurl/integration/tests_ok/basic_authentication.py
2022-03-23 07:39:53 +01:00

9 lines
231 B
Python

from app import app
from flask import request
@app.route("/basic-authentication")
def basic_authentication():
assert request.headers["Authorization"] == "Basic Ym9iQGVtYWlsLmNvbTpzZWNyZXQ="
return "You are authenticated"