Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
b-cfn-custom-userpool-authorizer
Advanced tools
Package that enables deployment of AWS CDK stacks in parallel.
An AWS CDK resource that mimics original UserPoolAuthorizer resource.
This is a custom user pool authorizer used to protect API endpoints. It has exactly the same functionality and purpose as the original UserPoolAuthorizer. The main reason why you would want to use this custom authorizer instead of a default one - is that this custom authorizer can resolve user pool region, id, and client id from SSM parameters (AWS Systems Manager Parameter Store). This way your stacks no longer need a dependency to a stack containing user pool instance.
Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.
This project assumes you are an expert in infrastructure-as-code via AWS CloudFormation and AWS CDK. You must clearly understand how AWS API Gateway endpoints are protected with Authorizers / Custom Authorizers and how it is managed via CloudFormation or CDK. You must also understand the pain-points of stack dependencies and dependencies between microservices in general (which this package aims to solve).
Before installing this library, ensure you have these tools setup:
To install this project from source run:
pip install .
Or you can install it from a PyPi repository:
pip install b-cfn-custom-userpool-authorizer
from aws_cdk import Stack
from aws_cdk.aws_cognito import UserPool, UserPoolClient
from aws_cdk.aws_apigatewayv2 import CfnApi
from b_cfn_custom_userpool_authorizer.config.user_pool_config import UserPoolConfig
from b_cfn_custom_userpool_authorizer.user_pool_custom_authorizer import UserPoolCustomAuthorizer
# Create user pool and client.
pool = UserPool(...)
client = UserPoolClient(...)
# Create an API Gateway API.
api = CfnApi(...)
# Create custom authorizer and use it in your endpoints (CfnRoute).
authorizer = UserPoolCustomAuthorizer(
scope=Stack(...),
name='MyCustomAuthorizer',
api=api,
user_pool_config=UserPoolConfig(
user_pool_id=pool.user_pool_id,
user_pool_region=pool.stack.region,
user_pool_client_id=client.user_pool_client_id
)
)
This package has integration tests based on pytest. To run tests simply run:
pytest b_cfn_custom_userpool_authorizer_test/integration/tests
Found a bug? Want to add or suggest a new feature? Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in GitHub platform. Lets modernize the world together.
FAQs
Package that enables deployment of AWS CDK stacks in parallel.
We found that b-cfn-custom-userpool-authorizer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.