plain.oauth 0.13.0__py3-none-any.whl → 0.15.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.
@@ -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
+ ]
@@ -0,0 +1,26 @@
1
+ # Generated by Plain 0.32.0 on 2025-03-10 15:37
2
+
3
+ from plain import models
4
+ from plain.models import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+ dependencies = [
9
+ (
10
+ "plainoauth",
11
+ "0006_remove_oauthconnection_unique_oauth_provider_user_id_and_more",
12
+ ),
13
+ ]
14
+
15
+ operations = [
16
+ migrations.AlterField(
17
+ model_name="oauthconnection",
18
+ name="provider_key",
19
+ field=models.CharField(max_length=100),
20
+ ),
21
+ migrations.AlterField(
22
+ model_name="oauthconnection",
23
+ name="provider_user_id",
24
+ field=models.CharField(max_length=100),
25
+ ),
26
+ ]
plain/oauth/models.py CHANGED
@@ -30,10 +30,10 @@ class OAuthConnection(models.Model):
30
30
  )
31
31
 
32
32
  # The key used to refer to this provider type (in settings)
33
- provider_key = models.CharField(max_length=100, db_index=True)
33
+ provider_key = models.CharField(max_length=100)
34
34
 
35
35
  # The unique ID of the user on the provider's system
36
- provider_user_id = models.CharField(max_length=100, db_index=True)
36
+ provider_user_id = models.CharField(max_length=100)
37
37
 
38
38
  # Token data
39
39
  access_token = models.CharField(max_length=2000)
@@ -45,7 +45,7 @@ class OAuthConnection(models.Model):
45
45
  constraints = [
46
46
  models.UniqueConstraint(
47
47
  fields=["provider_key", "provider_user_id"],
48
- name="unique_oauth_provider_user_id",
48
+ name="plainoauth_oauthconnection_unique_provider_key_user_id",
49
49
  )
50
50
  ]
51
51
  ordering = ("provider_key",)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.13.0
3
+ Version: 0.15.0
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
@@ -4,7 +4,7 @@ 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=sa-OqAREv9lImv2k-FTDMq53qCSBBRD5iIR1tsAzkGQ,6885
7
+ plain/oauth/models.py,sha256=ceSw9AKZMXffE4ZKZLxIbOlSyndTCHL22GCuSF3Hpmk,6880
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
@@ -13,9 +13,11 @@ plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb
13
13
  plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=FyLfwxc2pRzF-CbdRFQRRSQTOCxc9l1womgStygm_lo,629
14
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
17
+ plain/oauth/migrations/0007_alter_oauthconnection_provider_key_and_more.py,sha256=B_LW6xG1o_uA13tqUs0KniXl1JBNbQu4wMh2pW8rq5I,675
16
18
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
19
  plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
18
- plain_oauth-0.13.0.dist-info/METADATA,sha256=7M4Lvx04VgBPfu1gQKnOENFgPdXvyiuP1Kw_rtLjlC8,10305
19
- plain_oauth-0.13.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
- plain_oauth-0.13.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
21
- plain_oauth-0.13.0.dist-info/RECORD,,
20
+ plain_oauth-0.15.0.dist-info/METADATA,sha256=jKtL2zde5Ee5zVwOyg-8b85Il0dmdNO_WJ7gdRruJiY,10305
21
+ plain_oauth-0.15.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
22
+ plain_oauth-0.15.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
23
+ plain_oauth-0.15.0.dist-info/RECORD,,