plain.oauth 0.11.0__tar.gz → 0.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/PKG-INFO +1 -1
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/urls.py +2 -3
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/pyproject.toml +1 -1
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/settings.py +1 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/urls.py +4 -5
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/.gitignore +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/LICENSE +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/README.md +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/README.md +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/admin.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/config.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/default_settings.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/exceptions.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/0001_initial.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/migrations/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/models.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/providers.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/templates/oauth/error.html +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/plain/oauth/views.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/provider_examples/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/provider_examples/bitbucket.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/provider_examples/github.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/provider_examples/gitlab.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/templates/base.html +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/templates/index.html +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/templates/login.html +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/users/migrations/0001_initial.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/users/migrations/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/app/users/models.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/provider_tests/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/provider_tests/test_github.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/providers/__init__.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/providers/bitbucket.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/providers/github.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/providers/gitlab.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/test_backends.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/test_checks.py +0 -0
- {plain_oauth-0.11.0 → plain_oauth-0.12.0}/tests/test_providers.py +0 -0
@@ -1,10 +1,9 @@
|
|
1
|
-
from plain.urls import
|
1
|
+
from plain.urls import Router, include, path
|
2
2
|
|
3
3
|
from . import views
|
4
4
|
|
5
5
|
|
6
|
-
|
7
|
-
class Router(RouterBase):
|
6
|
+
class OAuthRouter(Router):
|
8
7
|
namespace = "oauth"
|
9
8
|
urls = [
|
10
9
|
include(
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import plain.oauth.urls
|
2
1
|
from plain.auth.views import AuthViewMixin, LogoutView
|
3
2
|
from plain.oauth.providers import get_provider_keys
|
4
|
-
from plain.urls import
|
3
|
+
from plain.oauth.urls import OAuthRouter
|
4
|
+
from plain.urls import Router, include, path
|
5
5
|
from plain.views import TemplateView
|
6
6
|
|
7
7
|
|
@@ -18,11 +18,10 @@ class LoginView(TemplateView):
|
|
18
18
|
template_name = "login.html"
|
19
19
|
|
20
20
|
|
21
|
-
|
22
|
-
class Router(RouterBase):
|
21
|
+
class AppRouter(Router):
|
23
22
|
namespace = ""
|
24
23
|
urls = [
|
25
|
-
include("oauth/",
|
24
|
+
include("oauth/", OAuthRouter),
|
26
25
|
path("login/", LoginView, name="login"),
|
27
26
|
path("logout/", LogoutView, name="logout"),
|
28
27
|
path("", LoggedInView),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|