plain.oauth 0.4.0__py3-none-any.whl → 0.5.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,25 @@
1
+ # Generated by Plain 0.3.0 on 2024-08-16 16:46
2
+
3
+ from plain import models
4
+ from plain.models import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+ dependencies = [
9
+ ("users", "__first__"),
10
+ ("plainoauth", "0004_alter_oauthconnection_access_token_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterUniqueTogether(
15
+ name="oauthconnection",
16
+ unique_together=set(),
17
+ ),
18
+ migrations.AddConstraint(
19
+ model_name="oauthconnection",
20
+ constraint=models.UniqueConstraint(
21
+ fields=("provider_key", "provider_user_id"),
22
+ name="unique_oauth_provider_user_id",
23
+ ),
24
+ ),
25
+ ]
plain/oauth/models.py CHANGED
@@ -41,7 +41,12 @@ class OAuthConnection(models.Model):
41
41
  refresh_token_expires_at = models.DateTimeField(blank=True, null=True)
42
42
 
43
43
  class Meta:
44
- unique_together = ("provider_key", "provider_user_id")
44
+ constraints = [
45
+ models.UniqueConstraint(
46
+ fields=["provider_key", "provider_user_id"],
47
+ name="unique_oauth_provider_user_id",
48
+ )
49
+ ]
45
50
  ordering = ("provider_key",)
46
51
 
47
52
  def __str__(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.oauth
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: OAuth login and API access for Plain.
5
5
  Home-page: https://plainframework.com
6
6
  License: BSD-3-Clause
@@ -6,14 +6,15 @@ plain/oauth/migrations/0001_initial.py,sha256=mPNAno5kas8yt7OXKvYcwihKd6PM0yKLnO
6
6
  plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb0IU9KDRQfog0PjVbzuNv_AxCs7UVHnA0F263AKNo,581
7
7
  plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=XSd_b8fbFyJQ9Hl117KH9g0-jOzXgekARBAtQqE9G14,625
8
8
  plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=ewMJTajyqbyYsxmJqlGtgc3fZPlqZWhX-Fnect1xgnQ,648
9
+ plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.py,sha256=1CjiVmWqSqy_9f3H4Z1nQYGECgT8HUAXinNhHjbJql8,698
9
10
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- plain/oauth/models.py,sha256=VoIki-97bAZR1NjBnuokDZUszP-M4qW9G47Vd4oC4LY,6744
11
+ plain/oauth/models.py,sha256=v1Onc088mPRM7EZDUCxrsMZTVCypB1mpkHpq5nYw_gU,6881
11
12
  plain/oauth/providers.py,sha256=NQNgxqNdU5ZFMA12vKZFTHagWx5SoMBf-fiZXmkFFps,7060
12
13
  plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
13
14
  plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
14
15
  plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
15
16
  plain/oauth/views.py,sha256=G6icfdKkOOOKB00JVN4SCeZmBcGOGUvAgueyvOd9bLI,3042
16
- plain_oauth-0.4.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
17
- plain_oauth-0.4.0.dist-info/METADATA,sha256=DLCwUbaR_m0d-8A3bEsmCpaP0rNHSTqhGpesooBNf00,12136
18
- plain_oauth-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
19
- plain_oauth-0.4.0.dist-info/RECORD,,
17
+ plain_oauth-0.5.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
18
+ plain_oauth-0.5.0.dist-info/METADATA,sha256=x2FB5VNhAjFNmELQysjUmysgRYZt_TLKP6Xs_1FJ6Mg,12136
19
+ plain_oauth-0.5.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
+ plain_oauth-0.5.0.dist-info/RECORD,,