SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams https://www.spiffworkflow.org/
Go to file
burnettk 4a48d9cccd Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c
5225a8b4c pyl
259f74a1e Merge branch 'main' into bug/refresh-token
d452208ef Merge pull request #135 from sartography/feature/permissions3
8e1075406 Merge branch 'main' into bug/refresh-token
2b01d2fe7 fixed authentication_callback and getting the user w/ burnettk
476e36c7d mypy changes
6403e62c0 Fix migration after merging main
594a32b67 merged in main and resolved conflicts w/ burnettk
b285ba1a1 added updated columns to secrets and updated flask-bpmn
7c53fc9fa Merge remote-tracking branch 'origin/main' into feature/permissions3
201a6918a pyl changes
a6112f7fb Merge branch 'main' into bug/refresh-token
87f65a6c6 auth_token should be dictionary, not string
f163de61c pyl
1f443bb94 PublicAuthenticationService -> AuthenticationService
6c491a3df Don't refresh token here. They just logged in. We are validating the returned token. If it is bad, raise an error.
91b8649f8 id_token -> auth_token
fc94774bb Move `store_refresh_token` to authentication_service
00d66e9c5 mypy
c4e415dbe mypy
1e75716eb Pre commit
a72b03e09 Rename method. We pass it auth_tokens, not id_tokens
9a6700a6d Too many things expect g.token. Reverting my change
74883fb23 Noe store refresh_token, and try to use it if auth_token is expired Renamed some methods to use correct token type
be0557013 Cleanup - remove unused code
cf01f0d51 Add refresh_token model
1c0c937af added method to delete all permissions so we can recreate them w/ burnettk
aaeaac879 Merge remote-tracking branch 'origin/main' into feature/permissions3
44856fce2 added api endpoint to check if user has permissions based on given target uris w/ burnettk
ae830054d precommit w/ burnettk
94d50efb1 created common method to check whether an api method should have auth w/ burnettk
c955335d0 precommit w/ burnettk
37caf1a69 added a finance user to keycloak and fixed up the staging permission yml w/ burnettk
93c456294 merged in main and resolved conflicts w/ burnettk
06a7c6485 remaining tests are now passing w/ burnettk
50529d04c added test to make sure api gives a 403 if a permission is not found w/ burnettk
6a9d0a68a api calls are somewhat respecting permissions now and the process api tests are passing
d07fbbeff attempting to respect permissions w/ burnettk

git-subtree-dir: spiffworkflow-backend
git-subtree-split: 5225a8b4c101133567d4f7efa33632d36c29c81d
2022-10-20 16:00:12 -04:00
.github Squashed 'spiffworkflow-backend/' changes from eb89e9529..59e6ee2c8 2022-10-13 20:45:04 -04:00
bin Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
docs Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
keycloak Squashed 'spiffworkflow-backend/' changes from 1965bfe2d..823e32eb8 2022-10-17 21:35:30 -04:00
log Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
migrations Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
src/spiffworkflow_backend Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
tests Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
.cookiecutter.json Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.darglint Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.flake8 Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.gitattributes Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.gitignore Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.pre-commit-config.yaml Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.readthedocs.yml Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
.tool-versions Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
CODE_OF_CONDUCT.rst Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
CONTRIBUTING.rst Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
Dockerfile Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
LICENSE.rst Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
README.rst Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
codecov.yml Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
conftest.py Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
docker-compose.yml Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
noxfile.py Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
poetry.lock Squashed 'spiffworkflow-backend/' changes from f9c2fa21e..5225a8b4c 2022-10-20 16:00:12 -04:00
pyproject.toml Squashed 'spiffworkflow-backend/' changes from 823e32eb8..2fbc6777b 2022-10-18 07:09:34 -04:00
sonar-project.properties Squashed 'spiffworkflow-backend/' content from commit 50f28073 2022-10-12 10:22:22 -04:00
wsgi.py Squashed 'spiffworkflow-backend/' changes from eb89e9529..59e6ee2c8 2022-10-13 20:45:04 -04:00

README.rst

Spiffworkflow Backend
==========

|Tests| |Codecov|

|pre-commit| |Black|

.. |Tests| image:: https://github.com/sartography/spiffworkflow-backend/workflows/Tests/badge.svg
   :target: https://github.com/sartography/spiffworkflow-backend/actions?workflow=Tests
   :alt: Tests
.. |Codecov| image:: https://codecov.io/gh/sartography/spiffworkflow-backend/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/sartography/spiffworkflow-backend
   :alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Black


Features
--------

* Backend API portion of the spiffworkflow engine webapp


Running Locally
---------------

* Install libraries using poetry:

.. code:: console

   $ poetry install

* Setup the database - uses mysql and assumes server is running by default:

.. code:: console

   $ ./bin/recreate_db clean

* Run the server:

.. code:: console

   $ ./bin/run_server_locally


Requirements
------------

* Python 3.9+
* Poetry


Contributing
------------

Contributions are very welcome.
To learn more, see the `Contributor Guide`_.


License
-------

Distributed under the terms of the `MIT license`_,
*Spiffworkflow Backend* is free and open source software.


Issues
------

If you encounter any problems,
please `file an issue`_ along with a detailed description.


Credits
-------

This project was generated from `@cjolowicz`_'s `Hypermodern Python Cookiecutter`_ template.

.. _@cjolowicz: https://github.com/cjolowicz
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _MIT license: https://opensource.org/licenses/MIT
.. _PyPI: https://pypi.org/
.. _Hypermodern Python Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
.. _file an issue: https://github.com/sartography/spiffworkflow-backend/issues
.. _pip: https://pip.pypa.io/
.. github-only
.. _Contributor Guide: CONTRIBUTING.rst
.. _Usage: https://spiffworkflow-backend.readthedocs.io/en/latest/usage.html