mirror of
https://github.com/Luzifer/past3.git
synced 2024-12-22 20:31:16 +00:00
PaS(t)3 is a S3 file editor with Google authentication using Amazon Cognito.
Knut Ahlers
c6f83318e7
this prevents files being cached and not updated in the editor Signed-off-by: Knut Ahlers <knut@ahlers.me> |
||
---|---|---|
.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 |
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