• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DemocracyClub / aggregator-api / c262bab1-9448-40db-bac6-933f0e1c30cf

10 Dec 2024 02:43PM CUT coverage: 72.986%. Remained the same
c262bab1-9448-40db-bac6-933f0e1c30cf

Pull #585

circleci

awdem
removes temporary  output
Pull Request #585: removes temporary output

1078 of 1477 relevant lines covered (72.99%)

0.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/frontend/lambda_basic_auth.py
1
def lambda_handler(event, context):
×
2
    headers = event.get("headers", {})
×
3
    auth = headers.get("Authorization")
×
4
    dc_auth = "Basic ZGM6ZGM="  # dc:dc in base64
×
5

6
    if auth == dc_auth:
×
7
        return {
×
8
            "principalId": "dc",
9
            "policyDocument": {
10
                "Version": "2012-10-17",
11
                "Statement": [
12
                    {
13
                        "Action": "execute-api:Invoke",
14
                        "Effect": "Allow",
15
                        "Resource": "*",
16
                    }
17
                ],
18
            },
19
        }
20

21
    raise Exception("Unauthorized")
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc