mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
11 lines
223 B
Python
11 lines
223 B
Python
from tests import app
|
|
from flask import request
|
|
|
|
@app.route('/basic-authentication')
|
|
def basic_authentication():
|
|
assert request.headers['Authorization'] == 'Basic Ym9iOnNlY3JldA=='
|
|
return 'You are authenticated'
|
|
|
|
|
|
|