OAuth2 Login for Typeform and Tripetto
Project description
RYGforms
Ask for a OAuth2 login, then redirect to a Typeform having one or more hidden fields.
Running
Development
-
Clone this repository:
git clone git@github.com:RYGhub/rygforms.git
-
Enter the cloned directory:
cd rygforms
-
Create a new
.envfile inside containing your configuration (see the example):cp EXAMPLE.env .env vim .env
-
Install the requirements using Poetry:
poetry install -
Run the debug server from inside the Poetry environment:
poetry shell python -m rygforms
Production
-
Create a new
rygformsuser:adduser rygforms --system
-
Create a working directory for RYGforms, set the owner to
rygformsand enter it:mkdir /opt/rygforms cd /opt/rygforms -
Create a new venv and enter it:
python -m venv venv source venv/bin/activate
-
Install through PyPI:
pip install rygforms gunicorn
-
Create a new
.envfile inside containing your configuration (see the example):curl https://raw.githubusercontent.com/RYGhub/rygforms/master/EXAMPLE.env > .env vim .env
-
Change the owner of the working directory to
rygforms:chown rygforms: /opt/rygforms
-
Copy the provided systemd unit file to the
/etc/systemd/systemdirectory:curl https://raw.githubusercontent.com/RYGhub/rygforms/master/web-rygforms.service > /etc/systemd/system/web-rygforms.service
-
Reload the systemd unit files:
systemctl daemon-reload -
Start (and optionally enable) the service:
systemctl start "web-rygforms" systemctl enable "web-rygforms"
-
Copy the provided Apache site file to the
/etc/apache2/sites-availabledirectory:curl https://raw.githubusercontent.com/RYGhub/rygforms/master/rp-rygforms.conf > /etc/apache2/sites-available/rp-rygforms.conf
-
Enable the
rp-rygformssite and reload the Apache configuration:a2ensite rp-rygforms systemctl reload apache2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rygforms-0.5.12.tar.gz.
File metadata
- Download URL: rygforms-0.5.12.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b0f33081b861992de3c7e8974ac41d119baabea559e29c6f86e58eef564e28
|
|
| MD5 |
8c201b37e3982c0ca66f346ddcd357f1
|
|
| BLAKE2b-256 |
2c3f9e7527bf9f1bf75b0eda9b7bf28f0cf3dece66000876a01711673cf551d9
|
File details
Details for the file rygforms-0.5.12-py3-none-any.whl.
File metadata
- Download URL: rygforms-0.5.12-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
094a2336d146edbd38d6aa100cd437f1904edcce25c138f0d3c3265ea46ec588
|
|
| MD5 |
1a6b2919737b090767e122b6c150fb13
|
|
| BLAKE2b-256 |
b4364b00dacf9b5373ea0ab1ea7e030b9ca77cf1ddb5f4c39d84a72993941081
|