Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@gemeentenijmegen/webapp
Advanced tools
Readme
This packages provides the building blocks to create a standardized webapp. It contains both infrastructure (CloudFront, S3 buckets etc.) as application code (login/authetnication)
Creating the webapp foundation is easy.
/**
* Create the webapp!
*/
const webapp = new WebappConstruct(this, 'app', {
applicationName: Statics.projectName,
cloudFrontCertificate: certificate,
domainName: `${hostedZone.zoneName}`,
additionalSourceFilesDir: 'src/resources',
hostedZone: hostedZone,
staticResourcesDirectory: './src/app/static-resources/',
defaultPath: '/home',
postLoginProcessor: this.postLoginHook(secretBrpMtlsPrivateKey, ssmBrpMtlsCertficate, ssmBrpMtlsRootCa),
oidcProfiles: props.configuration.oidcProfiles,
});
/**
* Constrcut a post-login hook function that is passed directly
* to the webapp. It will register the function and redirect trafic
* there after the pre-login (auth lambda).
* @returns
*/
postLoginHook(privateKey: ISecret, cert: IStringParameter, rootCa: IStringParameter) {
const hook = new ApiFunction(this, 'post-login-function', {
description: 'Post-login lambda',
apiFunction: PostloginFunction,
environment: {
BRP_API_URL: StringParameter.valueForStringParameter(this, Statics.ssmBrpApiEndpointUrl),
MTLS_PRIVATE_KEY_ARN: privateKey.secretArn,
MTLS_CLIENT_CERT_NAME: Statics.ssmBrpMtlsCertificate,
MTLS_ROOT_CA_NAME: Statics.ssmBrpMtlsRootCA,
},
});
privateKey.grantRead(hook.lambda);
cert.grantRead(hook.lambda);
rootCa.grantRead(hook.lambda);
return hook;
}
/**
* Add a home page to the webapp
* @param webapp
*/
addHomePage(webapp: WebappConstruct) {
const homeFunction = new ApiFunction(this, 'home-function', {
description: 'Home lambda',
apiFunction: HomeFunction,
});
webapp.addPage('home', homeFunction, '/home');
}
FAQs
This packages provides the building blocks to create a standardized webapp. It contains both infrastructure (CloudFront, S3 buckets etc.) as application code (login/authetnication)
The npm package @gemeentenijmegen/webapp receives a total of 25 weekly downloads. As such, @gemeentenijmegen/webapp popularity was classified as not popular.
We found that @gemeentenijmegen/webapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.