mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
10 lines
299 B
Python
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"
|