Skip to content

Commit

Permalink
disable basic auth for testing (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds authored Aug 10, 2023
1 parent 9ea381f commit f34339f
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 f34339f

Please sign in to comment.