Skip to content

Commit

Permalink
Revert "disable basic auth for testing (#2442)"
Browse files Browse the repository at this point in the history
This reverts commit f34339f.
  • Loading branch information
fusionandy authored and alex-fusionauth committed Sep 5, 2023
1 parent f4b9cb1 commit 4a13d43
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/cloudfront/fusionauth-website-request-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ function handler(event) {
}

// fusionauth:rocks
//if (hdrs.host && hdrs.host.value !== 'fusionauth.io' && (!hdrs.authorization || hdrs.authorization.value !== 'Basic ZnVzaW9uYXV0aDpyb2Nrcw==')) {
//return {
//statusCode: 401,
//statusDescription: 'Unauthorized',
//headers: {
//'www-authenticate': { value: 'Basic' }
//}
//};
//}
if (hdrs.host && hdrs.host.value !== 'fusionauth.io' && (!hdrs.authorization || hdrs.authorization.value !== 'Basic ZnVzaW9uYXV0aDpyb2Nrcw==')) {
return {
statusCode: 401,
statusDescription: 'Unauthorized',
headers: {
'www-authenticate': { value: 'Basic' }
}
};
}

var uri = req.uri;
if (uri.endsWith('.html')) {
Expand Down

0 comments on commit 4a13d43

Please sign in to comment.