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