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

10 lines
299 B
Python

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