![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@sswahn/authorizer
Advanced tools
An AWS Cognito authorizer for APIGateway that uses HTTP Cookies.
An AWS Cognito authorizer for APIGateway that uses HTTP Cookies.
Designed for use with AWS Lambda as a custom authorizer for AWS API Gateway to authenticate and authorize users against an AWS Cognito User Pool.
HTTP Cookie value should be a valid Cognito AccessToken.
import authorizer from '@sswahn/authorizer'
export const handler = async (event, context, callback) => {
authorizer('cookieName', event, callback)
}
Before deploying, make sure to configure the following:
AWS Cognito User Pool: Set up an AWS Cognito User Pool and configure it with appropriate security settings.
AWS API Gateway: Create an AWS API Gateway and configure the Lambda authorizer to use the Lambda function implementing this authorizer.
IAM Permissions: Ensure that the IAM role associated with this Lambda function has the necessary permissions to interact with AWS Cognito. Specifically, the Lambda function should have permissions to execute the GetUserCommand
and any other relevant AWS SDK operations. Sample IAM policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cognito-idp:GetUser",
],
"Resource": [
"arn:aws:cognito-idp:YOUR_REGION:YOUR_ACCOUNT_ID:userpool/YOUR_USER_POOL_ID"
]
}
]
}
Authorizer is MIT Licensed
FAQs
An AWS Cognito authorizer for APIGateway that uses HTTP Cookies.
The npm package @sswahn/authorizer receives a total of 0 weekly downloads. As such, @sswahn/authorizer popularity was classified as not popular.
We found that @sswahn/authorizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.