Make slash on OAuth endpoints optional to handle clients that cannot follow redirects. (#670)

This commit is contained in:
Tyler Kennedy 2024-04-21 18:25:53 -04:00
parent 7c34ac78ed
commit 39129f5da7

View file

@ -344,9 +344,9 @@ urlpatterns = [
path("inbox/", activitypub.Inbox.as_view(), name="shared_inbox"),
# API/Oauth
path("api/", include("api.urls")),
path("oauth/authorize", oauth.AuthorizationView.as_view()),
path("oauth/token", oauth.TokenView.as_view()),
path("oauth/revoke", oauth.RevokeTokenView.as_view()),
re_path(r"oauth/authorize/?$", oauth.AuthorizationView.as_view()),
re_path(r"oauth/token/?$", oauth.TokenView.as_view()),
re_path(r"oauth/revoke/?$", oauth.RevokeTokenView.as_view()),
# Stator
path(".stator/", stator.RequestRunner.as_view()),
# Django admin