- Added DynamoDB.js file
- Added DynamoDB
- Added
userId
to People model.
- Supports OR queries in assertUserCan (e.g.
assertUserCan(['can_do_admin_stuff', 'write_contents'], req
) - Supports parameterized capabilities (e.g.
assertUserCan('write_contents', req, 'blog')
) - Provides a Download to CSV mechanism for frontend and backend.
- Fixed build issues involving DB#sha256
- Removed
write_content_types
capability from Administrator and Editor - Removed
write_settings
capability from Administrator
- Added Session#create() and Session#cleanupExpired
- Added @klaudsol/commons/lib/Crypto for cryptography-related functions
- Crypto#sha256 has can now be encoded as 'hex' or 'base64' (used to be 'base64' only)
- Fix: Removed trailing commas on migration script
- Added a method that resets a user's password (change password w/out old password)
- assertUserCan now caters to both JWT and session.
- Add the S3.js file, which includes presigned URL's upload, among other things.
- Execute migrations inside plugins
- Disable Cloudwatch errors when not being used
- Migration system now avaiable via dist/scripts
- Plugin system also availabe via dist/scripts
- Bug fix: cannot change password on initial login
- Bug fix: API calls should still work if caller uses session instead of JWT
- Addition of a migration system, found in dist/db
- Addition of PATCH and OPTIONS verb on createAPIHandler
- Added @klaudsol/commons/lib/SES
- Align environment variables with the new naming convention
- Prefixed all environment variables with KS_ so that we can play nicely with AWS Amplify
- Added support for JWT Tokens
- Added some CORS improvement
- Minor environment variable fix: KS_SECRET_COOKIE_PASSWORD and KS_SECRET_COOKIE_NAME
- Fix: People model should be ordered deterministically.
These are reusable code that has just been recently refactored out of KlaudSol CMS.
Important bits include:
- Groups and Capabilities
- API handlers and Default Error Handlers
- Connectivity to Data API of Aurora Serverless V1