plain.oauth 0.7.5__py3-none-any.whl → 0.8.1__py3-none-any.whl
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/README.md +0 -2
- plain/oauth/{staff.py → admin.py} +9 -9
- {plain_oauth-0.7.5.dist-info → plain_oauth-0.8.1.dist-info}/METADATA +1 -5
- {plain_oauth-0.7.5.dist-info → plain_oauth-0.8.1.dist-info}/RECORD +6 -6
- {plain_oauth-0.7.5.dist-info → plain_oauth-0.8.1.dist-info}/WHEEL +0 -0
- {plain_oauth-0.7.5.dist-info → plain_oauth-0.8.1.dist-info}/licenses/LICENSE +0 -0
plain/oauth/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
from plain.
|
2
|
-
from plain.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
StaffModelViewset,
|
1
|
+
from plain.admin.cards import ChartCard
|
2
|
+
from plain.admin.views import (
|
3
|
+
AdminModelDetailView,
|
4
|
+
AdminModelListView,
|
5
|
+
AdminViewset,
|
7
6
|
register_viewset,
|
8
7
|
)
|
8
|
+
from plain.models import Count
|
9
9
|
|
10
10
|
from .models import OAuthConnection
|
11
11
|
|
@@ -34,14 +34,14 @@ class ProvidersChartCard(ChartCard):
|
|
34
34
|
|
35
35
|
|
36
36
|
@register_viewset
|
37
|
-
class OAuthConnectionViewset(
|
38
|
-
class ListView(
|
37
|
+
class OAuthConnectionViewset(AdminViewset):
|
38
|
+
class ListView(AdminModelListView):
|
39
39
|
nav_section = "OAuth"
|
40
40
|
model = OAuthConnection
|
41
41
|
title = "Connections"
|
42
42
|
fields = ["id", "user", "provider_key", "provider_user_id"]
|
43
43
|
cards = [ProvidersChartCard]
|
44
44
|
|
45
|
-
class DetailView(
|
45
|
+
class DetailView(AdminModelDetailView):
|
46
46
|
model = OAuthConnection
|
47
47
|
title = "OAuth connection"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: plain.oauth
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.8.1
|
4
4
|
Summary: OAuth login and API access for Plain.
|
5
5
|
Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
|
6
6
|
License-Expression: BSD-3-Clause
|
@@ -12,10 +12,6 @@ Requires-Dist: plain<1.0.0
|
|
12
12
|
Requires-Dist: requests>=2.0.0
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
|
15
|
-
<!-- This file is compiled from plain-oauth/plain/oauth/README.md. Do not edit this file directly. -->
|
16
|
-
|
17
|
-
<!-- This file is compiled from plain-oauth/plain/oauth/README.md. Do not edit this file directly. -->
|
18
|
-
|
19
15
|
# plain.oauth
|
20
16
|
|
21
17
|
Let users log in with OAuth providers.
|
@@ -1,11 +1,11 @@
|
|
1
|
-
plain/oauth/README.md,sha256=
|
1
|
+
plain/oauth/README.md,sha256=RWGb-KlcYm6etIKAgypE7qqzmgRWskAaVdKxfrXybV8,9901
|
2
2
|
plain/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
+
plain/oauth/admin.py,sha256=rqrGRRUVxOlG9wiuXtndIyQxd1VT67cvFy6qWo7LF-Q,1278
|
3
4
|
plain/oauth/config.py,sha256=jk5l59taT_3Kh7EFrJuuubtrCHLfNBVkD2sWQ_M5_JQ,160
|
4
5
|
plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
|
5
6
|
plain/oauth/exceptions.py,sha256=TMGtIGkK3_J4rsEy1oPCmia7BnRSK8N8RMZm4_pNelA,189
|
6
7
|
plain/oauth/models.py,sha256=JKST_orOFzywvtoQbrTO9cn7lKLJgjaBUJTN9RqXw7c,6843
|
7
8
|
plain/oauth/providers.py,sha256=CqZg5pkB7yLK2Fkbc3dpY9ioYeh5tVoEuiJf1qn1qDM,7150
|
8
|
-
plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
|
9
9
|
plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
|
10
10
|
plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
|
11
11
|
plain/oauth/migrations/0001_initial.py,sha256=8-JR2McXDUNRhMRUrrZPqzRNpdROfCsIo5Qkndkn-pg,1756
|
@@ -15,7 +15,7 @@ plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha25
|
|
15
15
|
plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=3hmuSvIZhn-haEKOGN3lQzcXD7b_Hy0P8Wa7LOAvJ1k,576
|
16
16
|
plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
|
18
|
-
plain_oauth-0.
|
19
|
-
plain_oauth-0.
|
20
|
-
plain_oauth-0.
|
21
|
-
plain_oauth-0.
|
18
|
+
plain_oauth-0.8.1.dist-info/METADATA,sha256=XlvCzLWntjvnH5gvvM6TjmmD2L3bt2NQWgUBeQvjIg8,10304
|
19
|
+
plain_oauth-0.8.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
20
|
+
plain_oauth-0.8.1.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
|
21
|
+
plain_oauth-0.8.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|