PaS(t)3 is a S3 file editor with Google authentication using Amazon Cognito.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc
.gitignore
History.md
Makefile
README.md
app.js
cognito_auth_policy.json
config.yml
cors.xml
generate.py
index.html
package-lock.json
package.json
requirements.txt
screenshot.png
upload.sh

README.md

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.

Screenshot of PaS(t)3 development

Setup

  1. Create a project in the Google Cloud Console
  2. Add an oAuth consent screen for your application (API Manager -> Credentials)
  3. Create credentials for a "Web application", add your URL as an "Authorized JavaScript origin"
  4. Put Client Id into the config.yml
  5. Create a S3 bucket and add the CORS policy
  6. Create an Amazon Cognito Federated Identity Pool
  7. Add the policy documented in cognito_auth_policy.json as "Authenticated Role"
  8. Set the Google Client ID in the Google+ tab in "Authentication providers"
  9. Note down the Idenitiy Pool ID in the config.yml
  10. Go through the config.yml and adjust parameters
  11. You may need to execute pip install -r requirements.txt as next step needs three python modules
  12. Execute make which will generate a public folder with all required files
  13. Upload the contents of the public folder

Used technology