| Commit message (Collapse) | Author | Age | Lines | 
| ...    |  | 
| | | | 
| | | 
| | | 
| | | 
| | | 
| | | 
| | |  | 
Returns a form with no questions, if the server is not running in
production, and no other forms are found, to aid in setting up.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | 
| | | 
| | | 
| | | 
| | | 
| | | 
| | | 
| | |  | 
The form model specifies webhook as nullable, but the validator code
does not properly handle them. This PR adds logic to handle that
scenario.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | |/  
|/|   
| |   
| |   
| |   
| |   
| |    | 
Reverts the changes made in 4f28ae85 because they made it impossible to
send a partial patch request. Changes to a simpler try/except instead.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | 
| | 
| | 
| |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| |/  
|   
|   
|   
|   
|    | 
Makes sure patch requests send a validated request.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Copies the admin adding endpoint into an unprotected endpoint that is
only registered in non-production builds.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| |\   | 
 | 
| | |\  
| | | 
| | | 
| | | 
| | | 
| | | 
| | | 
| | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
#	poetry.lock
#	pyproject.toml
 | 
| | |\ \  
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
#	backend/__init__.py
#	poetry.lock
 | 
| | |\ \ \  
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
#	poetry.lock
 | 
| | | | | | 
| | | | | 
| | | | | 
| | | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | |  | 
 | 
| | | | | |  | 
 | 
| | | | | |  | 
 | 
| | | | | |  | 
 | 
| | | | | |  | 
 | 
| | | | | | 
| | | | | 
| | | | |  | 
Co-authored-by: Hassan Abouelela <[email protected]>
 | 
| |\ \ \ \ \  
| | |_|_|/  
| |/| | |    | 
 | 
| | | |_|/  
| |/| |   
| | | |   
| | | |    | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Removes schema from the token cookie's domain field.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Traefik forwards https traffic to http, which causes issues with the
protocol in a request's URL. This switch uses the protocol header to
correctly set the protocol.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Correctly formats the domain set on the cookie used for tokens.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Adds a helper method to allow tokens to work on deploy previews.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
This reverts commit 013ea900
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Sets the authorization token cookie's security policy to lax, to allow
it to work on the site.
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Cleans up the authorize file, and the __init__ to maintain the project's
 code style.
Co-authored-by: Joe Banks <[email protected]>
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
Changes the name for the token used to authorize with the backend.
Co-authored-by: Joe Banks <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
Signed-off-by: Hassan Abouelela <[email protected]>
 | 
| | |\ \ \  
| | | |/  
| | |/|   
| | | |   
| | | |   
| | | |    | 
# Conflicts:
#	backend/routes/forms/form.py
#	backend/routes/forms/submit.py
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
Co-authored-by: Hassan Abouelela <[email protected]>
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | | | |  | 
 |