# authing-lambda **Repository Path**: Authi_ng/authing-lambda ## Basic Information - **Project Name**: authing-lambda - **Description**: Using Authing to replace AWS Cognito + OpenID Connect in AWS Lambda - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # authing-lambda Using Authing in AWS Lambda. [Live Demo](https://sample.authing.cn/aws) ## Deploy lambda ### Install serverless ``` shell $ npm install serverless -g ``` ## Test Lambda * `cd serverless-authorizer` * `serverless deploy` * Notice the displayed endpoint after deployment * `curl --header "Authorization: allow" ` - Should work! Authorized! * `curl --header "Authorization: deny" ` - Should not work * `curl --header "Authorization: unauthorized" ` - Should not work * `curl --header "Authorization: blabla" ` - Should not work * `curl ` - Should not work ## Run front-end ``` shell $ npm install $ npm run serve ``` ## Build front-end ``` shell $ npm install $ npm run build ```