mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 08:02:12 +03:00
14 lines
358 B
Python
14 lines
358 B
Python
from flask import request
|
|
from app import app
|
|
import re
|
|
|
|
|
|
@app.route("/aws-sigv4", methods=["POST"])
|
|
def aws_sigv4():
|
|
auth = request.headers.get("Authorization")
|
|
assert re.match(
|
|
r"^AWS4-HMAC-SHA256 Credential=someAccessKeyId/\d+/eu-central-1/hurltest/aws4_request, SignedHeaders=\S+, Signature=[a-f0-9]+$",
|
|
auth,
|
|
)
|
|
return ""
|