plain.oauth 0.29.0__tar.gz → 0.29.1__tar.gz

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.
Files changed (40) hide show
  1. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/PKG-INFO +3 -3
  2. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/CHANGELOG.md +10 -0
  3. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/README.md +2 -2
  4. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/pyproject.toml +1 -1
  5. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/.gitignore +0 -0
  6. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/LICENSE +0 -0
  7. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/README.md +0 -0
  8. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/__init__.py +0 -0
  9. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/admin.py +0 -0
  10. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/config.py +0 -0
  11. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/default_settings.py +0 -0
  12. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/exceptions.py +0 -0
  13. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/migrations/0001_initial.py +0 -0
  14. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/migrations/__init__.py +0 -0
  15. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/models.py +0 -0
  16. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/providers.py +0 -0
  17. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/templates/oauth/callback.html +0 -0
  18. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/urls.py +0 -0
  19. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/plain/oauth/views.py +0 -0
  20. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/provider_examples/__init__.py +0 -0
  21. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/provider_examples/bitbucket.py +0 -0
  22. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/provider_examples/github.py +0 -0
  23. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/provider_examples/gitlab.py +0 -0
  24. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/settings.py +0 -0
  25. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/templates/base.html +0 -0
  26. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/templates/index.html +0 -0
  27. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/templates/login.html +0 -0
  28. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/urls.py +0 -0
  29. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/users/migrations/0001_initial.py +0 -0
  30. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/users/migrations/__init__.py +0 -0
  31. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/app/users/models.py +0 -0
  32. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/provider_tests/__init__.py +0 -0
  33. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/provider_tests/test_github.py +0 -0
  34. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/providers/__init__.py +0 -0
  35. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/providers/bitbucket.py +0 -0
  36. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/providers/github.py +0 -0
  37. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/providers/gitlab.py +0 -0
  38. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/test_backends.py +0 -0
  39. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/test_checks.py +0 -0
  40. {plain_oauth-0.29.0 → plain_oauth-0.29.1}/tests/test_providers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.oauth
3
- Version: 0.29.0
3
+ Version: 0.29.1
4
4
  Summary: Let users log in with OAuth providers.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -196,11 +196,11 @@ Here's an very basic example:
196
196
  {% extends "base.html" %}
197
197
 
198
198
  {% block content %}
199
- Hello {{ request.user }}!
199
+ Hello {{ get_current_user() }}!
200
200
 
201
201
  <h2>Existing connections</h2>
202
202
  <ul>
203
- {% for connection in request.user.oauth_connections.all %}
203
+ {% for connection in get_current_user().oauth_connections.all %}
204
204
  <li>
205
205
  {{ connection.provider_key }} [ID: {{ connection.provider_user_id }}]
206
206
  <form action="{% url 'oauth:disconnect' connection.provider_key %}" method="post">
@@ -1,5 +1,15 @@
1
1
  # plain-oauth changelog
2
2
 
3
+ ## [0.29.1](https://github.com/dropseed/plain/releases/plain-oauth@0.29.1) (2025-10-02)
4
+
5
+ ### What's changed
6
+
7
+ - Updated documentation examples to use `get_current_user()` instead of `request.user` ([f6278d9](https://github.com/dropseed/plain/commit/f6278d9bb4))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.29.0](https://github.com/dropseed/plain/releases/plain-oauth@0.29.0) (2025-10-02)
4
14
 
5
15
  ### What's changed
@@ -182,11 +182,11 @@ Here's an very basic example:
182
182
  {% extends "base.html" %}
183
183
 
184
184
  {% block content %}
185
- Hello {{ request.user }}!
185
+ Hello {{ get_current_user() }}!
186
186
 
187
187
  <h2>Existing connections</h2>
188
188
  <ul>
189
- {% for connection in request.user.oauth_connections.all %}
189
+ {% for connection in get_current_user().oauth_connections.all %}
190
190
  <li>
191
191
  {{ connection.provider_key }} [ID: {{ connection.provider_user_id }}]
192
192
  <form action="{% url 'oauth:disconnect' connection.provider_key %}" method="post">
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.oauth"
3
- version = "0.29.0"
3
+ version = "0.29.1"
4
4
  description = "Let users log in with OAuth providers."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  license = "BSD-3-Clause"
File without changes
File without changes
File without changes