hurl/integration/tests_ok/basic_authentication_per_request.py

9 lines
243 B
Python

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