auth0_oauth_client 0.2.0__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.
- auth0_oauth_client/__init__.py +1 -0
- auth0_oauth_client/admin.py +56 -0
- auth0_oauth_client/apps.py +6 -0
- auth0_oauth_client/client.py +676 -0
- auth0_oauth_client/errors.py +124 -0
- auth0_oauth_client/migrations/0001_initial.py +84 -0
- auth0_oauth_client/migrations/__init__.py +0 -0
- auth0_oauth_client/models.py +54 -0
- auth0_oauth_client/oauth.py +283 -0
- auth0_oauth_client/settings.py +38 -0
- auth0_oauth_client/typing.py +98 -0
- auth0_oauth_client-0.2.0.dist-info/LICENSE +21 -0
- auth0_oauth_client-0.2.0.dist-info/METADATA +48 -0
- auth0_oauth_client-0.2.0.dist-info/RECORD +15 -0
- auth0_oauth_client-0.2.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .client import auth_client
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from django.contrib import admin
|
|
2
|
+
|
|
3
|
+
from auth0_oauth_client.models import AccountLinking
|
|
4
|
+
from auth0_oauth_client.models import AccountToken
|
|
5
|
+
from auth0_oauth_client.models import ConnectedAccount
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@admin.register(ConnectedAccount)
|
|
9
|
+
class ConnectedAccountAdmin(admin.ModelAdmin):
|
|
10
|
+
list_display = (
|
|
11
|
+
"id",
|
|
12
|
+
"connected_account_id",
|
|
13
|
+
"email",
|
|
14
|
+
"provider",
|
|
15
|
+
"user_id_owner",
|
|
16
|
+
"is_account_linked",
|
|
17
|
+
"created_at",
|
|
18
|
+
"updated_at",
|
|
19
|
+
)
|
|
20
|
+
list_filter = (
|
|
21
|
+
"provider",
|
|
22
|
+
"is_account_linked",
|
|
23
|
+
)
|
|
24
|
+
search_fields = (
|
|
25
|
+
"email",
|
|
26
|
+
"user_id_owner",
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@admin.register(AccountToken)
|
|
31
|
+
class AccountTokenAdmin(admin.ModelAdmin):
|
|
32
|
+
list_display = (
|
|
33
|
+
"id",
|
|
34
|
+
"user_id",
|
|
35
|
+
"refresh_token",
|
|
36
|
+
"created_at",
|
|
37
|
+
"updated_at",
|
|
38
|
+
)
|
|
39
|
+
search_fields = ("user_id",)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@admin.register(AccountLinking)
|
|
43
|
+
class AccountLinkingAdmin(admin.ModelAdmin):
|
|
44
|
+
list_display = (
|
|
45
|
+
"id",
|
|
46
|
+
"primary_user_id",
|
|
47
|
+
"secondary_provider",
|
|
48
|
+
"secondary_user_id",
|
|
49
|
+
"created_at",
|
|
50
|
+
"updated_at",
|
|
51
|
+
)
|
|
52
|
+
list_filter = ("secondary_provider",)
|
|
53
|
+
search_fields = (
|
|
54
|
+
"primary_user_id",
|
|
55
|
+
"secondary_user_id",
|
|
56
|
+
)
|