mirror of
https://github.com/Luzifer/past3.git
synced 2024-11-09 08:20:02 +00:00
PaS(t)3 is a S3 file editor with Google authentication using Amazon Cognito.
008e1702ba
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.15) Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.babelrc | ||
.gitignore | ||
app.js | ||
cognito_auth_policy.json | ||
config.yml | ||
cors.xml | ||
generate.py | ||
History.md | ||
index.html | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md | ||
requirements.txt | ||
screenshot.png | ||
upload.sh |
Luzifer / PaS(t)3
PaS(t)3 is a S3 file editor with Google authentication using Amazon Cognito. It does not require a server to run but can be deployed into a S3 bucket. Files edited are also stored in a (possibly the same) S3 bucket.
Setup
- Create a project in the Google Cloud Console
- Add an oAuth consent screen for your application (API Manager -> Credentials)
- Create credentials for a "Web application", add your URL as an "Authorized JavaScript origin"
- Put Client Id into the
config.yml
- Create a S3 bucket and add the CORS policy
- Create an Amazon Cognito Federated Identity Pool
- Add the policy documented in
cognito_auth_policy.json
as "Authenticated Role" - Set the Google Client ID in the Google+ tab in "Authentication providers"
- Note down the Idenitiy Pool ID in the
config.yml
- Go through the
config.yml
and adjust parameters - You may need to execute
pip install -r requirements.txt
as next step needs three python modules - Execute
make
which will generate apublic
folder with all required files - Upload the contents of the
public
folder