plain.oauth 0.12.0__py3-none-any.whl → 0.14.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.
- plain/oauth/migrations/0001_initial.py +4 -4
- plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py +1 -1
- plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py +1 -1
- plain/oauth/migrations/0006_remove_oauthconnection_unique_oauth_provider_user_id_and_more.py +24 -0
- plain/oauth/models.py +4 -4
- {plain_oauth-0.12.0.dist-info → plain_oauth-0.14.0.dist-info}/METADATA +1 -1
- {plain_oauth-0.12.0.dist-info → plain_oauth-0.14.0.dist-info}/RECORD +9 -8
- {plain_oauth-0.12.0.dist-info → plain_oauth-0.14.0.dist-info}/WHEEL +0 -0
- {plain_oauth-0.12.0.dist-info → plain_oauth-0.14.0.dist-info}/licenses/LICENSE +0 -0
@@ -28,15 +28,15 @@ class Migration(migrations.Migration):
|
|
28
28
|
("updated_at", models.DateTimeField(auto_now=True)),
|
29
29
|
("provider_key", models.CharField(db_index=True, max_length=100)),
|
30
30
|
("provider_user_id", models.CharField(db_index=True, max_length=100)),
|
31
|
-
("access_token", models.CharField(
|
32
|
-
("refresh_token", models.CharField(
|
31
|
+
("access_token", models.CharField(required=False, max_length=100)),
|
32
|
+
("refresh_token", models.CharField(required=False, max_length=100)),
|
33
33
|
(
|
34
34
|
"access_token_expires_at",
|
35
|
-
models.DateTimeField(
|
35
|
+
models.DateTimeField(required=False, allow_null=True),
|
36
36
|
),
|
37
37
|
(
|
38
38
|
"refresh_token_expires_at",
|
39
|
-
models.DateTimeField(
|
39
|
+
models.DateTimeField(required=False, allow_null=True),
|
40
40
|
),
|
41
41
|
(
|
42
42
|
"user",
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by Plain 0.31.0 on 2025-03-08 21:33
|
2
|
+
|
3
|
+
from plain import models
|
4
|
+
from plain.models import migrations
|
5
|
+
|
6
|
+
|
7
|
+
class Migration(migrations.Migration):
|
8
|
+
dependencies = [
|
9
|
+
("plainoauth", "0005_alter_oauthconnection_unique_together_and_more"),
|
10
|
+
]
|
11
|
+
|
12
|
+
operations = [
|
13
|
+
migrations.RemoveConstraint(
|
14
|
+
model_name="oauthconnection",
|
15
|
+
name="unique_oauth_provider_user_id",
|
16
|
+
),
|
17
|
+
migrations.AddConstraint(
|
18
|
+
model_name="oauthconnection",
|
19
|
+
constraint=models.UniqueConstraint(
|
20
|
+
fields=("provider_key", "provider_user_id"),
|
21
|
+
name="plainoauth_oauthconnection_unique_provider_key_user_id",
|
22
|
+
),
|
23
|
+
),
|
24
|
+
]
|
plain/oauth/models.py
CHANGED
@@ -37,15 +37,15 @@ class OAuthConnection(models.Model):
|
|
37
37
|
|
38
38
|
# Token data
|
39
39
|
access_token = models.CharField(max_length=2000)
|
40
|
-
refresh_token = models.CharField(max_length=2000,
|
41
|
-
access_token_expires_at = models.DateTimeField(
|
42
|
-
refresh_token_expires_at = models.DateTimeField(
|
40
|
+
refresh_token = models.CharField(max_length=2000, required=False)
|
41
|
+
access_token_expires_at = models.DateTimeField(required=False, allow_null=True)
|
42
|
+
refresh_token_expires_at = models.DateTimeField(required=False, allow_null=True)
|
43
43
|
|
44
44
|
class Meta:
|
45
45
|
constraints = [
|
46
46
|
models.UniqueConstraint(
|
47
47
|
fields=["provider_key", "provider_user_id"],
|
48
|
-
name="
|
48
|
+
name="plainoauth_oauthconnection_unique_provider_key_user_id",
|
49
49
|
)
|
50
50
|
]
|
51
51
|
ordering = ("provider_key",)
|
@@ -4,18 +4,19 @@ plain/oauth/admin.py,sha256=rqrGRRUVxOlG9wiuXtndIyQxd1VT67cvFy6qWo7LF-Q,1278
|
|
4
4
|
plain/oauth/config.py,sha256=5Zc9mdpRgN3R1c9YspFrspWteqB2NAWna2p_-tgoPCc,159
|
5
5
|
plain/oauth/default_settings.py,sha256=dlN1J9vSOjjxPNLp-0qe-cLTqwM4E69ZAx_8lpxMhaM,28
|
6
6
|
plain/oauth/exceptions.py,sha256=TMGtIGkK3_J4rsEy1oPCmia7BnRSK8N8RMZm4_pNelA,189
|
7
|
-
plain/oauth/models.py,sha256=
|
7
|
+
plain/oauth/models.py,sha256=ezmFBFV53gxWQfUBW4RGCLb9xYyRoVPXfhIG8iOhGO0,6910
|
8
8
|
plain/oauth/providers.py,sha256=WMLr9g3S84lfIRFslO0VBCmthMBDQ3GCDLSIquTA_Y0,7138
|
9
9
|
plain/oauth/urls.py,sha256=FYzpQwhvZdcat8n3f7RyA-1Q21finKb8JEyakSOjXXg,696
|
10
10
|
plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
|
11
|
-
plain/oauth/migrations/0001_initial.py,sha256=
|
11
|
+
plain/oauth/migrations/0001_initial.py,sha256=89UGm3ZRpCxb0f8znnR-jpfVJ8rNwmergmzrLdB7Q8I,1783
|
12
12
|
plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb0IU9KDRQfog0PjVbzuNv_AxCs7UVHnA0F263AKNo,581
|
13
|
-
plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=
|
14
|
-
plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=
|
13
|
+
plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=FyLfwxc2pRzF-CbdRFQRRSQTOCxc9l1womgStygm_lo,629
|
14
|
+
plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=ho9CG-lf7OVg1vBnjn7miihoioNmOIz7ObxB2QkPeSo,652
|
15
15
|
plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=3hmuSvIZhn-haEKOGN3lQzcXD7b_Hy0P8Wa7LOAvJ1k,576
|
16
|
+
plain/oauth/migrations/0006_remove_oauthconnection_unique_oauth_provider_user_id_and_more.py,sha256=UjWRezZoAzjVS70oCRQ38k_w6YJtcd_uSYT4Kc3H1pg,713
|
16
17
|
plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
18
|
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.
|
19
|
+
plain_oauth-0.14.0.dist-info/METADATA,sha256=HkhsPgiMWaST3xsnI3d8JEQcjwPxL86NiY6GwH_VkH4,10305
|
20
|
+
plain_oauth-0.14.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
21
|
+
plain_oauth-0.14.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
|
22
|
+
plain_oauth-0.14.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|