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
.env
file 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
rygforms
user:adduser rygforms --system
-
Create a working directory for RYGforms, set the owner to
rygforms
and 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
.env
file 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/system
directory: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-available
directory:curl https://raw.githubusercontent.com/RYGhub/rygforms/master/rp-rygforms.conf > /etc/apache2/sites-available/rp-rygforms.conf
-
Enable the
rp-rygforms
site 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
Hashes for rygforms-0.5.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62c1dc3dfb28345cf927dcca6efd62bf68d701b094204d8c433ddd145a5a2d7 |
|
MD5 | a142c5758b80e26f7122add81c20bd09 |
|
BLAKE2b-256 | 6205deb620d1cc1db132e1af293718d703506f545f4677885b7febff24a51f90 |