pas.plugins.authomatic 2.0.0b2__tar.gz → 2.0.0rc1__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.
- pas_plugins_authomatic-2.0.0rc1/CHANGELOG.md +231 -0
- pas_plugins_authomatic-2.0.0rc1/CONTRIBUTORS.md +7 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1}/PKG-INFO +12 -6
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1}/README.md +3 -3
- pas_plugins_authomatic-2.0.0rc1/dependabot.yml +11 -0
- pas_plugins_authomatic-2.0.0rc1/docs/authomatic.svg +18 -0
- pas_plugins_authomatic-2.0.0rc1/docs/plone-control-panel.png +0 -0
- pas_plugins_authomatic-2.0.0rc1/docs/plugin-settings.png +0 -0
- pas_plugins_authomatic-2.0.0rc1/instance.yaml +3 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1}/pyproject.toml +54 -123
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/__init__.py +1 -1
- pas_plugins_authomatic-2.0.0rc1/src/pas/plugins/authomatic/browser/add_plugin.pt +45 -0
- pas_plugins_authomatic-2.0.0rc1/src/pas/plugins/authomatic/browser/authomatic.pt +61 -0
- pas.plugins.authomatic-2.0.0b2/pas/plugins/authomatic/locales/update.py → pas_plugins_authomatic-2.0.0rc1/src/pas/plugins/authomatic/locales/__main__.py +15 -29
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/de/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/es/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/fr/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/it/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- pas_plugins_authomatic-2.0.0rc1/src/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +106 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/pas.plugins.authomatic.pot +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/pt_BR/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/ro/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/patches/authomatic.py +8 -8
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/services/configure.zcml +3 -6
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/services/login.py +12 -13
- pas_plugins_authomatic-2.0.0rc1/tests/conftest.py +76 -0
- pas_plugins_authomatic-2.0.0rc1/tests/functional/conftest.py +0 -0
- pas_plugins_authomatic-2.0.0rc1/tests/functional/test_controlpanel.py +66 -0
- pas_plugins_authomatic-2.0.0rc1/tests/functional/test_controlpanel_functional.py +57 -0
- pas_plugins_authomatic-2.0.0rc1/tests/plugin/conftest.py +7 -0
- pas_plugins_authomatic-2.0.0rc1/tests/plugin/test_plugin.py +128 -0
- pas_plugins_authomatic-2.0.0rc1/tests/plugin/test_useridentities.py +169 -0
- pas_plugins_authomatic-2.0.0rc1/tests/plugin/test_useridfactories.py +24 -0
- pas_plugins_authomatic-2.0.0rc1/tests/services/conftest.py +31 -0
- pas_plugins_authomatic-2.0.0rc1/tests/services/test_services_authomatic.py +51 -0
- pas_plugins_authomatic-2.0.0rc1/tests/services/test_services_login.py +27 -0
- pas_plugins_authomatic-2.0.0rc1/tests/setup/test_setup_install.py +17 -0
- pas_plugins_authomatic-2.0.0rc1/tests/setup/test_setup_uninstall.py +19 -0
- pas_plugins_authomatic-2.0.0rc1/tests/setup/test_setuphandler.py +36 -0
- pas_plugins_authomatic-2.0.0rc1/tests/setup/test_upgrades.py +29 -0
- pas.plugins.authomatic-2.0.0b2/pas/plugins/authomatic/browser/add_plugin.pt +0 -28
- pas.plugins.authomatic-2.0.0b2/pas/plugins/authomatic/browser/authomatic.pt +0 -49
- pas.plugins.authomatic-2.0.0b2/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +0 -21
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1}/.gitignore +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1}/LICENSE.txt +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/authomatic.png +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/configure.zcml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/controlpanel.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/resources/authomatic-logo.svg +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/resources/authomatic.css +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/resources/authomatic.less +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/browser/view.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/configure.zcml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/integration/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/integration/restapi.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/integration/zope.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/interfaces.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/locales/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/log.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/meta.zcml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/patches/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/plugin.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/default/browserlayer.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/default/controlpanel.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/default/metadata.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/default/registry.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/uninstall/browserlayer.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/uninstall/controlpanel.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles/uninstall/registry.xml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/profiles.zcml +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/services/__init__.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/services/authomatic.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/setuphandlers.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/testing.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/useridentities.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/useridfactories.py +0 -0
- {pas.plugins.authomatic-2.0.0b2 → pas_plugins_authomatic-2.0.0rc1/src}/pas/plugins/authomatic/utils.py +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
<!--
|
|
3
|
+
You should *NOT* be adding new change log entries to this file.
|
|
4
|
+
You should create a file in the news directory instead.
|
|
5
|
+
For helpful instructions, please see:
|
|
6
|
+
https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<!-- towncrier release notes start -->
|
|
10
|
+
|
|
11
|
+
## 2.0.0rc1 (2025-03-27)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### New features:
|
|
15
|
+
|
|
16
|
+
- - Documented integration with Microsoft Entra ID @alecghica [#87](https://github.com/collective/pas.plugins.authomatic/issues/87)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Internal:
|
|
20
|
+
|
|
21
|
+
- Add suuport to Python 3.13 @ericof [#89](https://github.com/collective/pas.plugins.authomatic/issues/89)
|
|
22
|
+
- Use UV to manage the environment @ericof [#90](https://github.com/collective/pas.plugins.authomatic/issues/90)
|
|
23
|
+
- Update .vscode configuration @ericof [#91](https://github.com/collective/pas.plugins.authomatic/issues/91)
|
|
24
|
+
- GHA: Update workflows. @ericof [#92](https://github.com/collective/pas.plugins.authomatic/issues/92)
|
|
25
|
+
- Use pytest-plone 1.0.0a1 @ericof [#93](https://github.com/collective/pas.plugins.authomatic/issues/93)
|
|
26
|
+
|
|
27
|
+
## 2.0.0b3 (2025-02-03)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### New features:
|
|
31
|
+
|
|
32
|
+
- Register the adapter as needed by the @login endpoint present in plone.restapi @erral [#73](https://github.com/collective/pas.plugins.authomatic/issues/73)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Internal:
|
|
36
|
+
|
|
37
|
+
- Require plone.restapi higher than 9.10.0 [@ericof]
|
|
38
|
+
|
|
39
|
+
## 2.0.0b2 (2025-01-14)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Internal:
|
|
43
|
+
|
|
44
|
+
- Move CHANGELOG.md entries to CHANGES.md [@ericof] [#84](https://github.com/collective/pas.plugins.authomatic/issues/84)
|
|
45
|
+
- Document release process [@ericof] [#85](https://github.com/collective/pas.plugins.authomatic/issues/85)
|
|
46
|
+
- Rename logging.py to log.py [@ericof] [#86](https://github.com/collective/pas.plugins.authomatic/issues/86)
|
|
47
|
+
|
|
48
|
+
## 2.0.0b1 (2025-01-14)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Internal:
|
|
52
|
+
|
|
53
|
+
- Modernize package repository [@ericof] [#71](https://github.com/collective/pas.plugins.authomatic/issues/71)
|
|
54
|
+
- Move tests to pytest [@ericof] [#72](https://github.com/collective/pas.plugins.authomatic/issues/72)
|
|
55
|
+
- Drop Plone 5.2 support [@ericof] [#80](https://github.com/collective/pas.plugins.authomatic/issues/80)
|
|
56
|
+
- Update i18n mechanism, update Brazilian Portuguese translation [@ericof] [#82](https://github.com/collective/pas.plugins.authomatic/issues/82)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## 1.4.0 (2024-12-13)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- Patch `authomatic.providers.BaseProvider._fetch` to support Python 3.12 @ericof.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## 1.3.0 (2024-11-21)
|
|
66
|
+
|
|
67
|
+
- Search users by fullname and email. @alecghica
|
|
68
|
+
- Fix login on Volto frontend when already logged-in in Plone Classic. @avoinea
|
|
69
|
+
- Add the possibility to override the ZopeRequestAdapter.
|
|
70
|
+
- Fix the authomatic view when it is reporting an exception that does not have a message attribute
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## 1.2.0 (2023-09-13)
|
|
74
|
+
|
|
75
|
+
- Add Spanish translation. @macagua
|
|
76
|
+
|
|
77
|
+
- Better handle values from identity data. @cekk
|
|
78
|
+
|
|
79
|
+
- Add `username_userid` User ID factory. @ericof
|
|
80
|
+
|
|
81
|
+
- Annotate transaction in POST calls to authenticate a user. @ericof
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## 1.1.2 (2023-03-15)
|
|
85
|
+
|
|
86
|
+
- Support Python 3.11 for Plone 6. @ericof
|
|
87
|
+
|
|
88
|
+
- Lint fixes @ericof
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## 1.1.1 (2022-10-14)
|
|
92
|
+
|
|
93
|
+
- Upgrade plone/code-analysis-action to version 2. @ericof
|
|
94
|
+
|
|
95
|
+
- Fix packaging issue related to CHANGELOG.md not being included in the source package. @ericof
|
|
96
|
+
|
|
97
|
+
- Support Python 3.10 for Plone 6. @ericof
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## 1.1.0 (2022-10-10)
|
|
101
|
+
|
|
102
|
+
- Add the plone.restapi adapter to show the controlpanel in Volto. @erral
|
|
103
|
+
|
|
104
|
+
- Add possibility to redirect to `next_url` via provided cookie @avoinea
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## 1.0.0 (2022-07-25)
|
|
108
|
+
|
|
109
|
+
- Use plone/plone-setup GitHub Action. @ericof
|
|
110
|
+
|
|
111
|
+
- Add Brazilian Portuguese translation. @ericof
|
|
112
|
+
|
|
113
|
+
- Use plone/code-analysis-action GitHub Action for code analysis. @ericof
|
|
114
|
+
|
|
115
|
+
- Fix doChangeUser takes 2 positional arguments but 3 were given @avoinea
|
|
116
|
+
|
|
117
|
+
## 1.0b2 (2021-08-18)
|
|
118
|
+
|
|
119
|
+
- Fix tox setup, move CI from TravisCI to GitHub Actions. @jensens
|
|
120
|
+
|
|
121
|
+
- Code Style Black, Isort, zpretty and Pyupgrade applied. @jensens
|
|
122
|
+
|
|
123
|
+
- Add missing no-op methods for IUserManagement to plugin.
|
|
124
|
+
This fixes the tests. @jensens
|
|
125
|
+
|
|
126
|
+
- Drop Python 2 support and so require Plone 5.2. @jensens
|
|
127
|
+
|
|
128
|
+
- Include permissions from CMFCore to avoid ComponentLookupError. @bsuttor
|
|
129
|
+
|
|
130
|
+
- Fixed ModuleNotFoundError: No module named 'App.class_init' on Zope 5. @bsuttor
|
|
131
|
+
|
|
132
|
+
- Add french translation @mpeeters
|
|
133
|
+
|
|
134
|
+
- PAS event notification IPrincipalCreatedEvent. @jensens
|
|
135
|
+
|
|
136
|
+
- Python 3 and Plone 52 compatibility. @cekk
|
|
137
|
+
|
|
138
|
+
- Fix #44: Fullfill strictly exact_match when enumerating users @allusa
|
|
139
|
+
|
|
140
|
+
- Allow users deletion. @cekk
|
|
141
|
+
|
|
142
|
+
- Drop Plone < 5.1.x compatibility. @cekk
|
|
143
|
+
|
|
144
|
+
- Fix #54: Notification of PrincipalCreated event. @ericof
|
|
145
|
+
|
|
146
|
+
- Closes #55: Support plone.restapi. @ericof
|
|
147
|
+
|
|
148
|
+
## 1.0b1 (2017-11-20)
|
|
149
|
+
|
|
150
|
+
- Slighly beautify login modal. @jensens
|
|
151
|
+
|
|
152
|
+
- Fix #33" Page does not exist Control Settings. @jensens
|
|
153
|
+
|
|
154
|
+
- Fix #31: Link is broken to JSON configuration documentation in help text. @jensens
|
|
155
|
+
|
|
156
|
+
- Fix #28: After uninstall plone.external_login_url is still registered and the login broken. @jensens
|
|
157
|
+
|
|
158
|
+
- Support for Plone 5.1 tested (worked, ust control-panel icon needed some tweak).
|
|
159
|
+
Buildout configuration for 5.1 added. @jensens
|
|
160
|
+
|
|
161
|
+
- Install: Hide non-valid profiles at install form. @jensens
|
|
162
|
+
|
|
163
|
+
- Additional checks to ensure to never have an empty/None key stored. @jensens
|
|
164
|
+
|
|
165
|
+
- Fix #27: Update user data after login. @jensens
|
|
166
|
+
|
|
167
|
+
- Fix filter users bug in enumerateUsers plugin where it was always returning
|
|
168
|
+
all the users. @sneridagh
|
|
169
|
+
|
|
170
|
+
- fix typo and wording of login message @tkimnguyen
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## 1.0a7 (2016-02-15)
|
|
174
|
+
|
|
175
|
+
- Workaround for None users. @sneridagh
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## 1.0a6 (2016-01-11)
|
|
179
|
+
|
|
180
|
+
- Fix #21: When you logout and then login again, a new user is created. @jensens
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
## 1.0a5 (2015-12-04)
|
|
184
|
+
|
|
185
|
+
- Fix: #18 "Provider Login" option for "Generator for Plone User ID" seems
|
|
186
|
+
broken @jensens
|
|
187
|
+
|
|
188
|
+
- Fix: Title indicates if an identity is added @jensens
|
|
189
|
+
|
|
190
|
+
- Fix: Correct usage of plone.protect @jensens
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
## 1.0a4 (2015-11-20)
|
|
194
|
+
|
|
195
|
+
- Added german translation @jensens
|
|
196
|
+
|
|
197
|
+
- Restored Plone 4 compatibility @keul
|
|
198
|
+
|
|
199
|
+
- Added italian translation @keul
|
|
200
|
+
|
|
201
|
+
- Proper uninstall @keul
|
|
202
|
+
|
|
203
|
+
## 1.0a3 (2015-11-15)
|
|
204
|
+
|
|
205
|
+
- Refactor authomatic-handler to enable adding identities. @jensens
|
|
206
|
+
|
|
207
|
+
- Fix: use secret from settings as secret for Authomatic. @jensens
|
|
208
|
+
|
|
209
|
+
- Renamed view ``authomatic-login`` to ``authomatic-handler``, because this
|
|
210
|
+
view will be used to add an identity too (url must be registered on provider
|
|
211
|
+
side sometimes and we want to do this only once). @jensens
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## 1.0a2 (2015-11-14)
|
|
215
|
+
|
|
216
|
+
- Minimal validation of JSON. @jensens
|
|
217
|
+
|
|
218
|
+
- Make the whole ``remember`` procedure a ``safeWrite`` if called from login
|
|
219
|
+
view. We can not pass a authenticator token here, because of redirects and
|
|
220
|
+
expected return urls . @jensens
|
|
221
|
+
|
|
222
|
+
- Allow selection of user id generator strategy. @jensens
|
|
223
|
+
|
|
224
|
+
- Allow multiple services for one user. This changes a lot behind the scenes. @jensens
|
|
225
|
+
|
|
226
|
+
- Use authomatic.core.User attributes instead of raw provider data. closes [#9](https://github.com/collective/pas.plugins.authomatic/issues/9) @ericof
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## 1.0a1 (2015-10-28)
|
|
230
|
+
|
|
231
|
+
- Initial release.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Maintainers
|
|
2
|
+
|
|
3
|
+
* [Érico Andrei](https://github.com/ericof)
|
|
4
|
+
* [Jens Klein](https://github.com/jensens)
|
|
5
|
+
|
|
6
|
+
# Contributors
|
|
7
|
+
Several people helped to make this package work see [GitHub](https://github.com/collective/pas.plugins.authomatic/graphs/contributors) for the whole list.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pas.plugins.authomatic
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0rc1
|
|
4
4
|
Summary: Provides OAuth2/OpenID login for Plone using Authomatic.
|
|
5
5
|
Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md
|
|
6
6
|
Project-URL: Homepage, https://github.com/collective/pas.plugins.authomatic
|
|
@@ -22,18 +22,24 @@ Classifier: Framework :: Zope :: 5
|
|
|
22
22
|
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
|
23
23
|
Classifier: Programming Language :: Python
|
|
24
24
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
26
|
Classifier: Programming Language :: Python :: 3.11
|
|
26
27
|
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
-
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
29
|
+
Requires-Python: >=3.10
|
|
28
30
|
Requires-Dist: authomatic>=1.3.0
|
|
29
|
-
Requires-Dist: plone-restapi
|
|
31
|
+
Requires-Dist: plone-restapi>=9.10.0
|
|
30
32
|
Requires-Dist: products-cmfplone>=6.0
|
|
31
33
|
Provides-Extra: test
|
|
32
34
|
Requires-Dist: collective-mockmailhost; extra == 'test'
|
|
33
35
|
Requires-Dist: plone-app-robotframework[debug]; extra == 'test'
|
|
34
36
|
Requires-Dist: plone-app-testing; extra == 'test'
|
|
35
37
|
Requires-Dist: plone-restapi[test]; extra == 'test'
|
|
38
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
39
|
+
Requires-Dist: pytest-plone>=1.0.0a1; extra == 'test'
|
|
36
40
|
Requires-Dist: zest-releaser[recommended]; extra == 'test'
|
|
41
|
+
Requires-Dist: zest-releaser[recommended]>=9.5.0; extra == 'test'
|
|
42
|
+
Requires-Dist: zestreleaser-towncrier>=1.3.0; extra == 'test'
|
|
37
43
|
Description-Content-Type: text/markdown
|
|
38
44
|
|
|
39
45
|
<div align="center"><img alt="logo" src="https://raw.githubusercontent.com/collective/pas.plugins.authomatic/main/docs/authomatic.svg" width="70" /></div>
|
|
@@ -74,7 +80,6 @@ through standards like OAuth and OpenID.
|
|
|
74
80
|
```
|
|
75
81
|
*by author Peter Hudec on Authomatic website*
|
|
76
82
|
|
|
77
|
-
|
|
78
83
|
### Supported Providers
|
|
79
84
|
|
|
80
85
|
Out of the box, **pas.plugins.authomatic** supports the following providers
|
|
@@ -160,7 +165,6 @@ This package supports Plone sites using Volto or the Classic UI.
|
|
|
160
165
|
}
|
|
161
166
|
```
|
|
162
167
|
|
|
163
|
-
|
|
164
168
|
### Classic UI
|
|
165
169
|
|
|
166
170
|
- This package creates a view called `authomatic-handler` where you can login with different providers.
|
|
@@ -241,6 +245,9 @@ There are some differences in configuration:
|
|
|
241
245
|
- Each provider can get an optional entry `propertymap`.
|
|
242
246
|
It is a mapping from authomatic/provider user properties to plone user properties, like `"fullname": "name",`. Look at each providers documentation which properties are available.
|
|
243
247
|
|
|
248
|
+
## Integration with Entra ID
|
|
249
|
+
|
|
250
|
+
Enumeration PAS plugin: if you're using **pas.plugins.authomatic** with *Microsoft Entra ID*, we recommend pairing it with [pas.plugins.eea](https://github.com/eea/pas.plugins.eea) for proper user enumeration and metadata synchronization. This complementary plugin enables listing all the Entra ID users and groups and is compatible with both Plone 5 and Plone 6.
|
|
244
251
|
|
|
245
252
|
## Source Code and Contributions
|
|
246
253
|
|
|
@@ -249,7 +256,6 @@ If you want to help with the development (improvement, update, bug-fixing, ...)
|
|
|
249
256
|
- [Issue Tracker](https://github.com/collective/pas.plugins.authomatic/issues)
|
|
250
257
|
- [Source Code](https://github.com/collective/pas.plugins.authomatic/)
|
|
251
258
|
|
|
252
|
-
|
|
253
259
|
Please do larger changes on a branch and submit a Pull Request.
|
|
254
260
|
|
|
255
261
|
Creator of **pas.plugins.authomatic** is Jens Klein.
|
|
@@ -36,7 +36,6 @@ through standards like OAuth and OpenID.
|
|
|
36
36
|
```
|
|
37
37
|
*by author Peter Hudec on Authomatic website*
|
|
38
38
|
|
|
39
|
-
|
|
40
39
|
### Supported Providers
|
|
41
40
|
|
|
42
41
|
Out of the box, **pas.plugins.authomatic** supports the following providers
|
|
@@ -122,7 +121,6 @@ This package supports Plone sites using Volto or the Classic UI.
|
|
|
122
121
|
}
|
|
123
122
|
```
|
|
124
123
|
|
|
125
|
-
|
|
126
124
|
### Classic UI
|
|
127
125
|
|
|
128
126
|
- This package creates a view called `authomatic-handler` where you can login with different providers.
|
|
@@ -203,6 +201,9 @@ There are some differences in configuration:
|
|
|
203
201
|
- Each provider can get an optional entry `propertymap`.
|
|
204
202
|
It is a mapping from authomatic/provider user properties to plone user properties, like `"fullname": "name",`. Look at each providers documentation which properties are available.
|
|
205
203
|
|
|
204
|
+
## Integration with Entra ID
|
|
205
|
+
|
|
206
|
+
Enumeration PAS plugin: if you're using **pas.plugins.authomatic** with *Microsoft Entra ID*, we recommend pairing it with [pas.plugins.eea](https://github.com/eea/pas.plugins.eea) for proper user enumeration and metadata synchronization. This complementary plugin enables listing all the Entra ID users and groups and is compatible with both Plone 5 and Plone 6.
|
|
206
207
|
|
|
207
208
|
## Source Code and Contributions
|
|
208
209
|
|
|
@@ -211,7 +212,6 @@ If you want to help with the development (improvement, update, bug-fixing, ...)
|
|
|
211
212
|
- [Issue Tracker](https://github.com/collective/pas.plugins.authomatic/issues)
|
|
212
213
|
- [Source Code](https://github.com/collective/pas.plugins.authomatic/)
|
|
213
214
|
|
|
214
|
-
|
|
215
215
|
Please do larger changes on a branch and submit a Pull Request.
|
|
216
216
|
|
|
217
217
|
Creator of **pas.plugins.authomatic** is Jens Klein.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Generated from:
|
|
2
|
+
# https://github.com/plone/meta/tree/main/config/default
|
|
3
|
+
# See the inline comments on how to expand/tweak this configuration file
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
|
|
7
|
+
- package-ecosystem: "github-actions"
|
|
8
|
+
directory: "/"
|
|
9
|
+
schedule:
|
|
10
|
+
# Check for updates to GitHub Actions every week
|
|
11
|
+
interval: "weekly"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="580" height="220" viewBox="0 0 580 220" preserveAspectRatio="xMidYMid meet" id="svg4101">
|
|
4
|
+
<defs id="defs4103"/>
|
|
5
|
+
<metadata id="metadata4106">
|
|
6
|
+
<rdf:RDF>
|
|
7
|
+
<cc:Work rdf:about="">
|
|
8
|
+
<dc:format>image/svg+xml</dc:format>
|
|
9
|
+
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
|
10
|
+
<dc:title/>
|
|
11
|
+
</cc:Work>
|
|
12
|
+
</rdf:RDF>
|
|
13
|
+
</metadata>
|
|
14
|
+
<g transform="translate(398.57602,240.48884)" id="layer1">
|
|
15
|
+
<path d="m 110.64273,-240.4677 c -15.68317,0.4029 -28.53567,12.9032 -29.1875,28.75 l -0.03125,0.4688 c -0.006,0.2484 5e-5,0.5029 0,0.75 l 0,10 0,20 0,9.2812 c -0.40591,16.561 12.6884,30.313 29.25,30.7188 0.25052,0.01 0.50078,0 0.75,0 l 39.25,0 c 16.36744,0.4011 30.04589,-12.4234 30.71875,-28.7812 l 0.0313,-0.4688 c 0.006,-0.2484 -5e-5,-0.5029 0,-0.75 l 0,-10 0,-20 0,-9.2812 c 0.40588,-16.561 -12.6884,-30.2817 -29.25,-30.6876 -0.25052,-0.01 -0.50078,0 -0.75,0 l -39.25,0 c -0.51148,-0.012 -1.02534,-0.013 -1.53125,0 z m 0.78125,20 0.25,0 39.75,0 0.25,0 c 5.43697,0.1332 9.74979,4.5607 9.75,9.9688 0,0.083 0.002,0.166 0,0.25 l 0,9.75 0,18.2812 0,1.7188 0,10 c 0,0.083 0.002,0.166 0,0.25 l 0,0.1562 c -0.2209,5.3702 -4.65441,9.5948 -10,9.5938 l -0.25,0 -39.75,0 -0.25,0 c -5.43697,-0.1332 -9.74979,-4.5919 -9.75,-10 0,-0.083 -0.002,-0.166 0,-0.25 l 0,-9.75 0,-1.7188 0,-16.5624 0,-1.7188 0,-10 c 0,-0.083 -0.002,-0.166 0,-0.25 l 0,-0.1562 c 0.2209,-5.3702 4.65441,-9.5626 10,-9.5626 z" id="path3875" style="fill:#f2cb05;fill-opacity:1;stroke:none"/>
|
|
16
|
+
<path d="m -388.8169,-240.48578 c -5.52115,0.13529 -9.88523,4.72854 -9.74993,10.24943 l 0,0.15629 c 0.22092,5.3706 4.65374,9.59447 9.99993,9.59317 0.0822,0 0.1674,0 0.25,0 l 31.46854,0 28.03105,0 0.25,0 c 5.40889,2e-4 9.86669,4.31216 9.99993,9.74946 0.1353,5.52089 -4.22878,10.11414 -9.74993,10.24943 -0.0826,0 -0.16783,0 -0.25,0 l -28.28105,0 -12.46867,0 c -16.56346,0.40588 -29.65571,14.18561 -29.2498,30.74829 l 0.0313,0.46867 c 0.67289,16.3596 14.34922,29.18078 30.71849,28.77971 l 19.24987,0 c 0.0822,0 0.1674,0 0.25,0 5.52115,-0.1353 9.88523,-4.72854 9.74993,-10.24943 -0.13325,-5.4373 -4.59105,-9.74926 -9.99993,-9.74946 l -0.24999,0 -19.49988,0 c -0.0826,0 -0.16783,0 -0.24999,0 -5.3462,0 -9.77902,-4.22257 -9.99994,-9.59327 l 0,-0.15619 c -0.1353,-5.52089 4.22878,-10.11414 9.74994,-10.24943 0.0836,0 0.16686,0 0.25,0 l 28.28105,0 11.46867,0 0.25,0 c 5.40889,2e-4 9.86669,4.31216 9.99993,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,19.99889 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.22432,5.4532 4.79351,9.72696 10.24994,9.59327 5.43757,-0.1333 9.74972,-4.59085 9.74993,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-58.93423 c 0.0134,-0.51177 0.0127,-1.01354 0,-1.53112 -0.39982,-16.31419 -13.77008,-29.28267 -29.9998,-29.27967 l -59.99959,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 239.99837,0 c -5.52115,0.13529 -9.88523,4.72854 -9.74994,10.24943 l 0,0.15629 c 0.22092,5.3706 4.65374,9.59447 9.99994,9.59317 0.0822,0 0.1674,0 0.24999,0 l 19.49987,0 0.25,0 c 5.40888,2e-4 9.86668,4.31216 9.99993,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,59.99667 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.22432,5.4532 4.79351,9.72696 10.24993,9.59327 5.43758,-0.1333 9.749726,-4.59085 9.749936,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-59.34041 0,-0.15629 c -0.002,-0.084 0,-0.16679 0,-0.24999 2.1e-4,-5.4086 4.31236,-9.86615 9.749933,-9.99944 0.0836,0 0.166859,0 0.249999,0 l 19.999863,0 c 0.0822,0 0.167399,0 0.249999,0 5.521152,-0.13529 9.885232,-4.72854 9.749933,-10.24943 -0.133249,-5.4373 -4.591048,-9.74926 -9.999932,-9.74946 l -0.249998,0 -79.749453,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 119.999181,0 c -5.437573,0.13329 -9.749724,4.59085 -9.749934,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,79.58928 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.224319,5.4532 4.793507,9.72696 10.24993,9.59327 5.437573,-0.1333 9.749724,-4.59085 9.749934,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-19.34273 0,-0.15619 c -0.002,-0.084 0,-0.16689 0,-0.24999 2.1e-4,-5.4086 4.31236,-9.86615 9.7499333,-9.99944 0.0836,0 0.1668589,0 0.2499983,0 l 39.7497294,0 0.249998,0 c 5.408883,2e-4 9.866683,4.31216 9.999932,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,19.99889 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.224318,5.4532 4.793507,9.72696 10.24993,9.59327 5.437573,-0.1333 9.749724,-4.59085 9.749934,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-79.74557 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.135299,-5.52089 -4.728778,-9.88475 -10.24993,-9.74946 -5.437573,0.13329 -9.749724,4.59085 -9.749934,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,19.34263 c 0.002,0.084 0,0.16689 0,0.24998 -2.1e-4,5.4087 -4.312361,9.86626 -9.749934,9.99945 -0.0826,0 -0.167828,0 -0.249998,0 l -39.7497291,0 c -0.082599,0 -0.1678288,0 -0.2499983,0 -5.3461936,0 -9.7790236,-4.22257 -9.9999316,-9.59317 l 0,-0.15629 c -0.002,-0.084 0,-0.16679 0,-0.24999 l 0,-19.99888 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.135299,-5.52089 -4.728778,-9.88475 -10.24993,-9.74946 z m -239.998361,0 c -5.43758,0.13329 -9.74973,4.59085 -9.74994,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,58.77794 0,0.81245 c 5e-5,0.24709 -0.006,0.50157 0,0.74996 l 0.0313,0.46867 c 0.66248,16.10781 13.93615,28.77901 29.96851,28.77971 0.24922,0 0.49949,0.01 0.74999,0 l 38.46848,0 0.78125,0 c 0.2492,0 0.49947,0.01 0.74999,0 16.3179,-0.39988 29.26149,-13.76344 29.2498,-29.99834 -1.7e-4,-0.24168 0.006,-0.47577 0,-0.71876 l 0,-59.2779 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74946 -5.43757,0.13329 -9.74972,4.59085 -9.74993,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,31.31076 0,28.02965 c 0.002,0.084 0,0.16689 0,0.24998 -2.1e-4,5.4085 -4.31265,9.86625 -9.74994,9.99945 -0.0826,0 -0.16783,0 -0.24999,0 l -39.74972,0 c -0.0826,0 -0.16783,0 -0.25,0 -5.34591,0 -9.77903,-4.22277 -9.99993,-9.59327 l 0,-0.15619 c -0.002,-0.084 0,-0.16689 0,-0.24999 l 0,-28.27963 0,-31.71703 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.13531,-5.52089 -4.72879,-9.88475 -10.24994,-9.74946 z m -40.00803,119.99334 c -5.43757,0.13319 -9.74973,4.59084 -9.74994,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22431,5.453197 4.79351,9.72696 10.24994,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74945 z m -39.99973,0 c -5.43757,0.13319 -9.74972,4.59084 -9.74993,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22431,5.453197 4.7935,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74945 z m -39.99973,0 c -5.43757,0.13319 -9.74972,4.59084 -9.74993,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.79351,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72877,-9.88475 -10.24993,-9.74945 z m 119.99919,0 c -5.52116,0.13529 -9.88524,4.72853 -9.74994,10.24943 l 0,0.15619 c 0.22092,5.3707 4.65374,9.59446 9.99993,9.59326 0.0822,0 0.1674,0 0.25,0 l 31.46854,0 28.03106,0 0.25,0 c 5.40786,2e-4 9.86673,4.312665 9.99993,9.749463 0.1353,5.520393 -4.22977,10.114138 -9.74994,10.24943 -0.083,0 -0.1678,0 -0.24999,0 l -28.28106,0 -12.46867,0 c -16.56038,0.405878 -29.65559,14.187112 -29.2498,30.748292 l 0.0313,0.468674 c 0.67275,16.358092 14.3523,29.180779 30.71849,28.779702 l 19.24987,0 c 0.0822,0 0.1674,0 0.25,0 5.52115,-0.135293 9.88523,-4.728538 9.74993,-10.249431 -0.13325,-5.437298 -4.59105,-9.749259 -9.99993,-9.749459 l -0.24999,0 -19.49987,0 c -0.083,0 -0.1679,0 -0.25,0 -5.34527,0 -9.77914,-4.223065 -9.99993,-9.593267 l 0,-0.156191 c -0.1353,-5.520393 4.22987,-10.114138 9.74993,-10.249431 0.084,0 0.1668,0 0.25,0 l 28.28106,0 11.46867,0 0.25,0 c 5.40786,2e-4 9.86663,4.312661 9.99993,9.749459 l 0,0.249986 0,19.998889 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.7935,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-58.934226 c 0.013,-0.511772 0.013,-1.013644 0,-1.531215 -0.3999,-16.312699 -13.77321,-29.282569 -29.99979,-29.279569 l -59.9996,0 c -0.0831,0 -0.16641,0 -0.24999,0 z m 119.99918,0 c -5.52115,0.13529 -9.88523,4.72853 -9.74994,10.24943 l 0,0.15619 c 0.22092,5.3707 4.65374,9.59446 9.99994,9.59326 0.0822,0 0.1674,0 0.24999,0 l 19.49988,0 0.25,0 c 5.40886,2e-4 9.86662,4.312165 9.99992,9.749463 l 0,0.249986 0,59.996667 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.79351,9.72696 10.24993,9.593268 5.43758,-0.133293 9.749726,-4.590845 9.749936,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-59.340504 0,-0.156191 0,-0.249986 c 2e-4,-5.4086 4.312371,-9.866249 9.749933,-9.999449 0.084,0 0.166799,0 0.249999,0 l 19.999863,0 c 0.0822,0 0.167399,0 0.249999,0 5.521152,-0.13529 9.885232,-4.72853 9.749933,-10.24943 -0.133249,-5.43729 -4.591048,-9.74925 -9.999932,-9.74945 l -0.249998,0 -79.749453,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 119.999181,0 c -5.521153,0.13529 -9.885233,4.72853 -9.749934,10.24943 l 0,0.15619 c 0.220919,5.3707 4.653738,9.59446 9.999932,9.59326 0.0822,0 0.167399,0 0.249998,0 l 19.3436185,0 0.1562489,0 0.2499983,0 c 5.4088631,2e-4 9.8666328,4.312165 9.9999318,9.749463 l 0,0.249986 0,39.747792 0,0.249986 c -2e-4,5.408599 -4.3123706,9.866152 -9.7499335,9.999444 l -0.2499983,0 -19.9998637,0 c -0.0831,0 -0.166419,0 -0.249998,0 -5.521153,0.135293 -9.885233,4.728538 -9.749934,10.249431 l 0,0.156191 c 0.220919,5.370702 4.653738,9.594467 9.999932,9.593268 0.0822,0 0.167399,0 0.249998,0 l 79.749457,0 c 0.0822,0 0.167399,0 0.249998,0 5.521153,-0.135293 9.885233,-4.728538 9.749934,-10.249431 -0.133249,-5.437298 -4.591049,-9.749259 -9.999932,-9.749459 l -0.249998,0 -19.499868,0 -0.249998,0 c -5.408863,-2e-4 -9.866733,-4.31216 -9.999932,-9.749458 l 0,-0.249986 0,-39.747792 0,-0.249986 c -0.001,-5.346003 4.222722,-9.778559 9.593685,-9.999449 l 0.156249,0 0.249998,0 19.999864,0 c 0.0822,0 0.167399,0 0.249998,0 5.521153,-0.13529 9.885233,-4.72853 9.749934,-10.24943 -0.133249,-5.43729 -4.591049,-9.74925 -9.999932,-9.74945 l -0.249998,0 -79.749457,0 c -0.0831,0 -0.166419,0 -0.249998,0 z m 139.499049,0 -0.46875,0.031 c -16.108087,0.66237 -28.780351,13.93593 -28.781051,29.967039 0,0.249186 -0.01,0.499472 0,0.749958 l 0,38.466563 0,0.781257 c 0,0.249186 -0.01,0.499472 0,0.749958 0.399898,16.316594 13.764407,29.260075 29.999801,29.248376 0.24169,-2e-4 0.47584,0.01 0.71874,0 l 59.28085,0 c 0.0822,0 0.1674,0 0.24999,0 5.52116,-0.135293 9.88524,-4.728538 9.74994,-10.249431 -0.13325,-5.437298 -4.59105,-9.749259 -9.99993,-9.749459 l -0.25,0 -31.46854,0 -28.03106,0 -0.24999,0 c -5.40857,-2e-4 -9.86664,-4.31266 -9.99994,-9.749458 l 0,-0.249986 0,-39.747792 0,-0.249986 c -10e-4,-5.345503 4.22302,-9.778559 9.59369,-9.999449 l 0.15625,0 0.25,0 28.28105,0 31.71854,0 c 0.0822,0 0.1674,0 0.24999,0 5.52116,-0.13529 9.88524,-4.72853 9.74994,-10.24943 -0.13325,-5.43729 -4.59105,-9.74925 -9.99993,-9.74945 l -0.25,0 -58.9371,0 -0.81249,0 c -0.2471,10e-5 -0.5015,-0.01 -0.75,0 z" id="path3087" style="fill:#413744;fill-opacity:1;stroke:none"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["hatchling"]
|
|
3
|
-
build-backend = "hatchling.build"
|
|
4
|
-
|
|
5
1
|
[project]
|
|
6
2
|
name = "pas.plugins.authomatic"
|
|
7
3
|
dynamic = ["version"]
|
|
8
4
|
description = "Provides OAuth2/OpenID login for Plone using Authomatic."
|
|
9
5
|
readme = "README.md"
|
|
10
6
|
license = {text = "GNU General Public License v2 (GPLv2)"}
|
|
11
|
-
requires-python = ">=3.
|
|
7
|
+
requires-python = ">=3.10"
|
|
12
8
|
authors = [
|
|
13
9
|
{ name = "Jens Klein", email = "dev@bluedynamics.com" },
|
|
14
10
|
{ name = "Érico Andrei", email = "ericof@plone.org" },
|
|
@@ -33,13 +29,15 @@ classifiers = [
|
|
|
33
29
|
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
|
|
34
30
|
"Programming Language :: Python",
|
|
35
31
|
"Programming Language :: Python :: 3 :: Only",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
36
33
|
"Programming Language :: Python :: 3.11",
|
|
37
34
|
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Programming Language :: Python :: 3.13",
|
|
38
36
|
]
|
|
39
37
|
dependencies = [
|
|
40
|
-
"authomatic>=1.3.0",
|
|
41
|
-
"plone.restapi",
|
|
42
38
|
"Products.CMFPlone>=6.0",
|
|
39
|
+
"authomatic>=1.3.0",
|
|
40
|
+
"plone.restapi>=9.10.0",
|
|
43
41
|
]
|
|
44
42
|
|
|
45
43
|
[project.optional-dependencies]
|
|
@@ -49,6 +47,10 @@ test = [
|
|
|
49
47
|
"plone.app.testing",
|
|
50
48
|
"plone.restapi[test]",
|
|
51
49
|
"zest.releaser[recommended]",
|
|
50
|
+
"pytest-cov",
|
|
51
|
+
"pytest-plone>=1.0.0a1",
|
|
52
|
+
"zest-releaser[recommended]>=9.5.0",
|
|
53
|
+
"zestreleaser-towncrier>=1.3.0",
|
|
52
54
|
]
|
|
53
55
|
|
|
54
56
|
[project.urls]
|
|
@@ -61,121 +63,40 @@ Repository = "https://github.com/collective/pas.plugins.authomatic/"
|
|
|
61
63
|
[project.entry-points."z3c.autoinclude.plugin"]
|
|
62
64
|
target = "plone"
|
|
63
65
|
|
|
66
|
+
[build-system]
|
|
67
|
+
requires = ["hatchling"]
|
|
68
|
+
build-backend = "hatchling.build"
|
|
69
|
+
|
|
64
70
|
[tool.hatch.version]
|
|
65
71
|
path = "src/pas/plugins/authomatic/__init__.py"
|
|
66
72
|
|
|
67
73
|
[tool.hatch.build]
|
|
68
|
-
strict-naming =
|
|
69
|
-
packages = ["src/pas","src/pas/plugins"]
|
|
74
|
+
strict-naming = true
|
|
70
75
|
|
|
71
76
|
[tool.hatch.build.targets.sdist]
|
|
77
|
+
include = [
|
|
78
|
+
"/*.md",
|
|
79
|
+
"/*.yaml",
|
|
80
|
+
"/*.yml",
|
|
81
|
+
"/docs",
|
|
82
|
+
"/src",
|
|
83
|
+
"/tests",
|
|
84
|
+
]
|
|
72
85
|
exclude = [
|
|
73
86
|
"/.github",
|
|
74
87
|
]
|
|
75
88
|
|
|
76
|
-
[tool.hatch.
|
|
77
|
-
|
|
78
|
-
"hatch-pip-compile"
|
|
79
|
-
]
|
|
80
|
-
|
|
81
|
-
[tool.hatch.envs.default]
|
|
82
|
-
type = "pip-compile"
|
|
83
|
-
path = ".venv"
|
|
84
|
-
pip-compile-resolver = "uv"
|
|
85
|
-
pip-compile-installer = "uv"
|
|
86
|
-
lock-filename = "requirements.lock"
|
|
87
|
-
pip-compile-args = [
|
|
88
|
-
"--constraint",
|
|
89
|
-
"constraints-mxdev.txt",
|
|
90
|
-
]
|
|
91
|
-
dependencies = [
|
|
92
|
-
"hatch",
|
|
93
|
-
"hatchling",
|
|
94
|
-
"i18ndude",
|
|
95
|
-
"isort",
|
|
96
|
-
"plone.app.testing",
|
|
97
|
-
"plone.app.upgrade",
|
|
98
|
-
"plone.restapi[test]",
|
|
99
|
-
"pytest-cov==5.0.0",
|
|
100
|
-
"pytest-plone>=0.5.0",
|
|
101
|
-
"pytest",
|
|
102
|
-
"ruff",
|
|
103
|
-
"towncrier==23.11.0",
|
|
104
|
-
"zpretty",
|
|
105
|
-
"zest.releaser[recommended]",
|
|
106
|
-
"zestreleaser.towncrier",
|
|
107
|
-
]
|
|
108
|
-
|
|
109
|
-
[tool.hatch.envs.default.scripts]
|
|
110
|
-
test = "pytest {args:tests}"
|
|
111
|
-
test-cov = "coverage run -m pytest {args:tests}"
|
|
112
|
-
cov-report = [
|
|
113
|
-
"- coverage combine",
|
|
114
|
-
"coverage report",
|
|
115
|
-
]
|
|
116
|
-
cov = [
|
|
117
|
-
"test-cov",
|
|
118
|
-
"cov-report",
|
|
119
|
-
]
|
|
120
|
-
zpretty_lint = [
|
|
121
|
-
"find src -name '*.xml'|xargs zpretty -x --check",
|
|
122
|
-
"find src -name '*.zcml'|xargs zpretty -z --check",
|
|
123
|
-
]
|
|
124
|
-
zpretty_format = [
|
|
125
|
-
"find src -name '*.xml'|xargs zpretty -x -i",
|
|
126
|
-
"find src -name '*.zcml'|xargs zpretty -z -i",
|
|
127
|
-
]
|
|
128
|
-
lint = [
|
|
129
|
-
"ruff check",
|
|
130
|
-
"isort --check-only src/ tests/",
|
|
131
|
-
"zpretty_lint"
|
|
132
|
-
]
|
|
133
|
-
format = [
|
|
134
|
-
"ruff format",
|
|
135
|
-
"isort src/ tests/",
|
|
136
|
-
"zpretty_format"
|
|
137
|
-
]
|
|
138
|
-
i18n = [
|
|
139
|
-
"python -m pas.plugins.authomatic.locales.update"
|
|
140
|
-
]
|
|
141
|
-
changelog-draft = "towncrier --draft"
|
|
142
|
-
|
|
143
|
-
[[tool.hatch.envs.all.matrix]]
|
|
144
|
-
python = ["3.11", "3.12"]
|
|
145
|
-
|
|
146
|
-
[tool.coverage.run]
|
|
147
|
-
source_pkgs = ["pas.plugins.authomatic", "tests"]
|
|
148
|
-
branch = true
|
|
149
|
-
parallel = true
|
|
150
|
-
omit = [
|
|
151
|
-
"pas/plugins/authomatic/locales/__init__.py",
|
|
152
|
-
"pas/plugins/authomatic/locales/update.py",
|
|
153
|
-
]
|
|
154
|
-
|
|
155
|
-
[tool.coverage.paths]
|
|
156
|
-
pas.plugins.authomatic = ["src/pas/plugins/authomatic"]
|
|
157
|
-
tests = ["tests",]
|
|
89
|
+
[tool.hatch.build.targets.wheel]
|
|
90
|
+
packages = ["src/pas",]
|
|
158
91
|
|
|
159
|
-
[tool.
|
|
160
|
-
|
|
161
|
-
show_missing = true
|
|
162
|
-
exclude_lines = [
|
|
163
|
-
"no cov",
|
|
164
|
-
"if __name__ == .__main__.:",
|
|
165
|
-
"if TYPE_CHECKING:",
|
|
166
|
-
]
|
|
167
|
-
|
|
168
|
-
[tool.pytest.ini_options]
|
|
169
|
-
testpaths = ["tests"]
|
|
170
|
-
|
|
171
|
-
[tool.isort]
|
|
172
|
-
profile = "plone"
|
|
92
|
+
[tool.uv]
|
|
93
|
+
managed = false
|
|
173
94
|
|
|
174
95
|
[tool.towncrier]
|
|
175
96
|
package = "pas.plugins.authomatic"
|
|
176
97
|
package_dir = "src"
|
|
177
98
|
directory = "news/"
|
|
178
|
-
filename = "
|
|
99
|
+
filename = "CHANGELOG.md"
|
|
179
100
|
start_string = "<!-- towncrier release notes start -->\n"
|
|
180
101
|
issue_format = "[#{issue}](https://github.com/collective/pas.plugins.authomatic/issues/{issue})"
|
|
181
102
|
title_format = "## {version} ({project_date})"
|
|
@@ -212,11 +133,13 @@ directory = "tests"
|
|
|
212
133
|
name = "Tests"
|
|
213
134
|
showcontent = true
|
|
214
135
|
|
|
215
|
-
[tool.
|
|
216
|
-
|
|
136
|
+
[tool.black]
|
|
137
|
+
enable-unstable-feature = [
|
|
138
|
+
"hug_parens_with_braces_and_square_brackets"
|
|
139
|
+
]
|
|
217
140
|
|
|
218
141
|
[tool.ruff]
|
|
219
|
-
target-version = "
|
|
142
|
+
target-version = "py310"
|
|
220
143
|
line-length = 88
|
|
221
144
|
fix = true
|
|
222
145
|
lint.select = [
|
|
@@ -250,26 +173,34 @@ lint.select = [
|
|
|
250
173
|
lint.ignore = [
|
|
251
174
|
# DoNotAssignLambda
|
|
252
175
|
"E731",
|
|
253
|
-
"S602",
|
|
254
|
-
"SIM102",
|
|
255
|
-
"S314",
|
|
256
|
-
"S324"
|
|
257
176
|
]
|
|
258
177
|
|
|
178
|
+
[tool.ruff.lint.isort]
|
|
179
|
+
case-sensitive = false
|
|
180
|
+
no-sections = true
|
|
181
|
+
force-single-line = true
|
|
182
|
+
from-first = true
|
|
183
|
+
lines-after-imports = 2
|
|
184
|
+
lines-between-types = 1
|
|
185
|
+
order-by-type = false
|
|
186
|
+
|
|
259
187
|
[tool.ruff.format]
|
|
260
188
|
preview = true
|
|
261
189
|
|
|
262
190
|
[tool.ruff.lint.per-file-ignores]
|
|
263
|
-
"tests/*" = ["S101"]
|
|
191
|
+
"tests/*" = ["E501", "RUF001", "S101"]
|
|
264
192
|
|
|
265
|
-
[tool.
|
|
266
|
-
|
|
267
|
-
skip = "*.po,*.min.js"
|
|
193
|
+
[tool.pytest.ini_options]
|
|
194
|
+
testpaths = ["tests"]
|
|
268
195
|
|
|
269
|
-
[tool.
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
196
|
+
[tool.coverage.run]
|
|
197
|
+
source_pkgs = ["pas.plugins.authomatic", "tests"]
|
|
198
|
+
branch = true
|
|
199
|
+
parallel = true
|
|
200
|
+
omit = [
|
|
201
|
+
"src/pas/plugins/authomatic/locales/*",
|
|
275
202
|
]
|
|
203
|
+
|
|
204
|
+
[tool.zest-releaser]
|
|
205
|
+
upload-pypi = false # Build and upload with uv
|
|
206
|
+
python-file-with-version = "src/pas/plugins/authomatic/__init__.py"
|