Skip to content

Commit

Permalink
Merge pull request #3114 from SMillerDev/feat/api/oauth
Browse files Browse the repository at this point in the history
feat: add OAuth authentication
  • Loading branch information
mouse-reeve committed Apr 24, 2024
2 parents ad830dd + d5fb21f commit c4b21ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bookwyrm/settings.py
Expand Up @@ -101,6 +101,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.humanize",
"oauth2_provider",
"file_resubmit",
"sass_processor",
"bookwyrm",
Expand Down
3 changes: 2 additions & 1 deletion bookwyrm/urls.py
Expand Up @@ -2,7 +2,7 @@
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path, re_path
from django.urls import path, re_path, include
from django.views.generic.base import TemplateView

from bookwyrm import settings, views
Expand Down Expand Up @@ -829,6 +829,7 @@
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.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -10,6 +10,7 @@ django-compressor==4.4
django-csp==3.7
django-imagekit==4.1.0
django-model-utils==4.3.1
django-oauth-toolkit==2.3.0
django-pgtrigger==4.11.0
django-redis==5.2.0
django-sass-processor==1.2.2
Expand Down

0 comments on commit c4b21ee

Please sign in to comment.