feat: add OAuth authentication

Issue GH-2292
This commit is contained in:
Sean Molenaar 2023-11-14 14:18:12 +01:00
parent ab9cea1742
commit da4214ad61
3 changed files with 3 additions and 0 deletions

View file

@ -99,6 +99,7 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.humanize",
"oauth2_provider",
"sass_processor",
"bookwyrm",
"celery",

View file

@ -785,6 +785,7 @@ urlpatterns = [
r"^summary_revoke_key/?$", views.summary_revoke_key, name="summary-revoke-key"
),
path("guided-tour/<tour>", views.toggle_guided_tour),
re_path(r'^o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# Serves /static when DEBUG is true.

View file

@ -25,6 +25,7 @@ boto3==1.26.57
django-storages==1.13.2
django-storages[azure]
django-redis==5.2.0
django-oauth-toolkit==2.3.0
opentelemetry-api==1.16.0
opentelemetry-exporter-otlp-proto-grpc==1.16.0
opentelemetry-instrumentation-celery==0.37b0