Skip to content

Commit

Permalink
API was entirely unused (#534)
Browse files Browse the repository at this point in the history
Some reasons to delete:

* less to test;
* less dependencies (it used python-jose, as opposed to josepy).

Jira: IAM-1443
  • Loading branch information
bheesham authored Oct 29, 2024
1 parent 78a257f commit 8b839ff
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 160 deletions.
Empty file removed dashboard/api/__init__.py
Empty file.
5 changes: 0 additions & 5 deletions dashboard/api/exceptions.py

This file was deleted.

145 changes: 0 additions & 145 deletions dashboard/api/idp.py

This file was deleted.

4 changes: 0 additions & 4 deletions dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
from dashboard import get_config
from dashboard import vanity

from dashboard.api import idp
from dashboard.api import exceptions
from dashboard.csp import DASHBOARD_CSP
from dashboard.models.user import User
from dashboard.models.user import FakeUser
Expand Down Expand Up @@ -98,8 +96,6 @@ def session_configure(app: Flask) -> SessionInterface:

vanity_router = vanity.Router(app, app_list).setup()

api = idp.AuthorizeAPI(app, oidc_config)


@app.route("/favicon.ico")
def favicon():
Expand Down
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ cryptography==43.0.1
cssmin==0.2.0
defusedxml==0.7.1
distlib==0.3.8
ecdsa==0.19.0
everett==3.3.0
Faker==26.1.0
filelock==3.15.4
Expand Down Expand Up @@ -41,7 +40,6 @@ packaging==24.1
platformdirs==4.2.2
pluggy==1.5.0
pre-commit==3.8.0
pyasn1==0.6.0
pycparser==2.22
pycryptodomex==3.20.0
pydantic==2.8.2
Expand All @@ -52,11 +50,9 @@ pyOpenSSL==24.2.1
pyproject-api==1.7.1
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-jose==3.3.0
PyYAML==6.0.1
redis==5.2.0
requests==2.32.3
rsa==4.9
setuptools==72.1.0
six==1.16.0
tox==4.16.0
Expand Down
Empty file removed tests/api/__init__.py
Empty file.
Empty file removed tests/api/test_idp.py
Empty file.
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ deps =
mypy>=1
types-PyYAML>=6.0
types-colorama>=0.4
types-pyasn1>=0.6
types-python-jose>=3.3
types-redis>=4.6
types-requests>=2.32
types-six>=1.16
commands = mypy {tty:--color-output:--no-color-output} {posargs: ./tests ./dashboard}
Expand Down

0 comments on commit 8b839ff

Please sign in to comment.