Skip to content

Commit

Permalink
reauth dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lyleschemmerling committed Aug 15, 2023
1 parent bd0f7ca commit 4fd9730
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 4fd9730

Please sign in to comment.