mirror of
https://github.com/Luzifer/past3.git
synced 2024-11-14 02:32:41 +00:00
1.5 KiB
1.5 KiB
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