Permalink
Browse files

Update 2018-02-07-AWS-CloudFront-User-Authentication-using-Lambda@Edg…

…e.md

Add javascript syntax highlights
  • Loading branch information...
skvale committed Feb 13, 2018
1 parent 1fb2741 commit 361f32cf968526c5e8d1b281d5c5a78eb5956aac
Showing with 1 addition and 1 deletion.
  1. +1 −1 _posts/2018-02-07-AWS-CloudFront-User-Authentication-using-Lambda@Edge.md
@@ -13,7 +13,7 @@ CloudFront has a feature named [origin access identity](http://docs.aws.amazon.c
Having the ability to execute Lambda functions upon *[viewer request](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-cloudfront-trigger-events.html)* gives us the opportunity to authenticate the request in any way we wish. For our initial proof of concept, we checked for basic authentication with a static username/password.
```
```javascript
'use strict';
exports.handler = (event, context, callback) => {

0 comments on commit 361f32c

Please sign in to comment.