pas.plugins.authomatic 1.2.0__tar.gz → 1.3.0__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-1.2.0 → pas_plugins_authomatic-1.3.0}/CHANGELOG.md +8 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/PKG-INFO +20 -2
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/setup.py +1 -1
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/view.py +11 -2
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/update.py +1 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/plugin.py +18 -2
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/services/authomatic.py +17 -9
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_plugin.py +14 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_setup.py +1 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_upgrades.py +1 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/PKG-INFO +20 -2
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/.coveragerc +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/.editorconfig +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/CONTRIBUTORS.md +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/LICENSE.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/MANIFEST.in +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/Makefile +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/README.md +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/docs/authomatic.svg +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/docs/plone-control-panel.png +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/docs/plugin-settings.png +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/pyproject.toml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/requirements.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/setup.cfg +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/add_plugin.pt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/authomatic.png +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/authomatic.pt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/configure.zcml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/controlpanel.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/resources/authomatic-logo.svg +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/resources/authomatic.css +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/browser/resources/authomatic.less +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/configure.zcml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/integration/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/integration/restapi.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/integration/zope.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/interfaces.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/de/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/es/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/fr/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/it/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/pas.plugins.authomatic.pot +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/pt_BR/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/locales/ro/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/meta.zcml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/default/browserlayer.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/default/controlpanel.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/default/metadata.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/default/registry.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/uninstall/browserlayer.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/uninstall/controlpanel.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles/uninstall/registry.xml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/profiles.zcml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/services/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/services/configure.zcml +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/services/login.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/setuphandlers.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/testing.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/__init__.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/mocks.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_browser_controlpanel.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_services_authomatic.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_services_login.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_setuphandler.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_useridentities.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/tests/test_useridfactories.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/useridentities.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/useridfactories.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/utils.py +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/SOURCES.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/dependency_links.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/entry_points.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/namespace_packages.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/not-zip-safe +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/requires.txt +0 -0
- {pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas.plugins.authomatic.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.0 (2024-11-21)
|
|
4
|
+
|
|
5
|
+
- Search users by fullname and email. @alecghica
|
|
6
|
+
- Fix login on Volto frontend when already logged-in in Plone Classic. @avoinea
|
|
7
|
+
- Add the possibility to override the ZopeRequestAdapter.
|
|
8
|
+
- Fix the authomatic view when it is reporting an exception that does not have a message attribute
|
|
9
|
+
|
|
10
|
+
|
|
3
11
|
## 1.2.0 (2023-09-13)
|
|
4
12
|
|
|
5
13
|
- Add Spanish translation. @macagua
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pas.plugins.authomatic
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Provides OAuth2/OpenID login for Plone using Authomatic.
|
|
5
5
|
Home-page: https://github.com/collective/pas.plugins.authomatic
|
|
6
6
|
Author: Jens Klein, Matthias Dollfuss, and Érico Andrei
|
|
@@ -28,8 +28,18 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
28
28
|
Classifier: Programming Language :: Python
|
|
29
29
|
Requires-Python: >=3.7
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
|
-
Provides-Extra: test
|
|
32
31
|
License-File: LICENSE.txt
|
|
32
|
+
Requires-Dist: authomatic>=1.0.0
|
|
33
|
+
Requires-Dist: Products.CMFPlone>=5.2
|
|
34
|
+
Requires-Dist: plone.restapi
|
|
35
|
+
Requires-Dist: setuptools
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: collective.MockMailHost; extra == "test"
|
|
38
|
+
Requires-Dist: parameterized; extra == "test"
|
|
39
|
+
Requires-Dist: plone.app.testing; extra == "test"
|
|
40
|
+
Requires-Dist: plone.restapi[test]; extra == "test"
|
|
41
|
+
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
|
|
42
|
+
Requires-Dist: zest.releaser[recommended]; extra == "test"
|
|
33
43
|
|
|
34
44
|
|
|
35
45
|
<div align="center"><img alt="logo" src="https://raw.githubusercontent.com/collective/pas.plugins.authomatic/main/docs/authomatic.svg" width="70" /></div>
|
|
@@ -259,6 +269,14 @@ The project is licensed under the GPLv2.
|
|
|
259
269
|
|
|
260
270
|
# Changelog
|
|
261
271
|
|
|
272
|
+
## 1.3.0 (2024-11-21)
|
|
273
|
+
|
|
274
|
+
- Search users by fullname and email. @alecghica
|
|
275
|
+
- Fix login on Volto frontend when already logged-in in Plone Classic. @avoinea
|
|
276
|
+
- Add the possibility to override the ZopeRequestAdapter.
|
|
277
|
+
- Fix the authomatic view when it is reporting an exception that does not have a message attribute
|
|
278
|
+
|
|
279
|
+
|
|
262
280
|
## 1.2.0 (2023-09-13)
|
|
263
281
|
|
|
264
282
|
- Add Spanish translation. @macagua
|
|
@@ -11,7 +11,7 @@ long_description = f"""
|
|
|
11
11
|
|
|
12
12
|
setup(
|
|
13
13
|
name="pas.plugins.authomatic",
|
|
14
|
-
version="1.
|
|
14
|
+
version="1.3.0",
|
|
15
15
|
description="Provides OAuth2/OpenID login for Plone using Authomatic.",
|
|
16
16
|
long_description=long_description,
|
|
17
17
|
long_description_content_type="text/markdown",
|
|
@@ -29,6 +29,12 @@ class AuthomaticView(BrowserView):
|
|
|
29
29
|
|
|
30
30
|
template = ViewPageTemplateFile("authomatic.pt")
|
|
31
31
|
|
|
32
|
+
zope_request_adapter_factory = ZopeRequestAdapter
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def zope_request_adapter(self):
|
|
36
|
+
return self.zope_request_adapter_factory(self)
|
|
37
|
+
|
|
32
38
|
def publishTraverse(self, request, name):
|
|
33
39
|
if name and not hasattr(self, "provider"):
|
|
34
40
|
self.provider = name
|
|
@@ -111,13 +117,16 @@ class AuthomaticView(BrowserView):
|
|
|
111
117
|
pass
|
|
112
118
|
secret = authomatic_settings().secret
|
|
113
119
|
auth = Authomatic(cfg, secret=secret)
|
|
114
|
-
result = auth.login(
|
|
120
|
+
result = auth.login(self.zope_request_adapter, self.provider)
|
|
115
121
|
if not result:
|
|
116
122
|
logger.info("return from view")
|
|
117
123
|
# let authomatic do its work
|
|
118
124
|
return
|
|
119
125
|
if result.error:
|
|
120
|
-
|
|
126
|
+
try:
|
|
127
|
+
return result.error.message
|
|
128
|
+
except AttributeError:
|
|
129
|
+
return str(result.error)
|
|
121
130
|
display = cfg[self.provider].get("display", {})
|
|
122
131
|
provider_name = display.get("title", self.provider)
|
|
123
132
|
if not self.is_anon:
|
{pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/plugin.py
RENAMED
|
@@ -262,10 +262,26 @@ class AuthomaticPlugin(BasePlugin):
|
|
|
262
262
|
if not userid:
|
|
263
263
|
logger.warn("None userid found. This should not happen!")
|
|
264
264
|
continue
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
|
|
266
|
+
# search for a match in fullname, email and userid
|
|
267
267
|
identity = self._useridentities_by_userid[userid]
|
|
268
|
+
search_term = search_id.lower()
|
|
268
269
|
identity_userid = identity.userid
|
|
270
|
+
identity_fullname = identity.propertysheet.getProperty(
|
|
271
|
+
"fullname", ""
|
|
272
|
+
).lower()
|
|
273
|
+
identity_email = identity.propertysheet.getProperty("email", "").lower()
|
|
274
|
+
if (
|
|
275
|
+
search_term not in identity_userid
|
|
276
|
+
and search_term not in identity_fullname # noqa: W503
|
|
277
|
+
and search_term not in identity_email # noqa: W503
|
|
278
|
+
):
|
|
279
|
+
continue
|
|
280
|
+
|
|
281
|
+
# if not userid.startswith(search_id):
|
|
282
|
+
# continue
|
|
283
|
+
# identity = self._useridentities_by_userid[userid]
|
|
284
|
+
# identity_userid = identity.userid
|
|
269
285
|
ret.append(
|
|
270
286
|
{
|
|
271
287
|
"id": identity_userid,
|
|
@@ -13,9 +13,13 @@ from zope.interface import alsoProvides
|
|
|
13
13
|
from zope.interface import implementer
|
|
14
14
|
from zope.publisher.interfaces import IPublishTraverse
|
|
15
15
|
|
|
16
|
+
import logging
|
|
16
17
|
import transaction
|
|
17
18
|
|
|
18
19
|
|
|
20
|
+
logger = logging.getLogger("pas.plugins.authomatic")
|
|
21
|
+
|
|
22
|
+
|
|
19
23
|
@implementer(IPublishTraverse)
|
|
20
24
|
class LoginAuthomatic(Service):
|
|
21
25
|
"""Base class for Authomatic login."""
|
|
@@ -161,15 +165,13 @@ class Post(LoginAuthomatic):
|
|
|
161
165
|
break
|
|
162
166
|
return plugin
|
|
163
167
|
|
|
164
|
-
def _add_identity(self, result):
|
|
168
|
+
def _add_identity(self, result, userid=None):
|
|
165
169
|
"""Add an identity to an existing user.
|
|
166
170
|
|
|
167
171
|
:param result: Authomatic login result.
|
|
168
172
|
"""
|
|
169
173
|
aclu = self._get_acl_users()
|
|
170
|
-
aclu.authomatic.remember_identity(
|
|
171
|
-
result,
|
|
172
|
-
)
|
|
174
|
+
aclu.authomatic.remember_identity(result, userid)
|
|
173
175
|
|
|
174
176
|
def _remember_identity(self, result):
|
|
175
177
|
"""Store identity information.
|
|
@@ -237,17 +239,23 @@ class Post(LoginAuthomatic):
|
|
|
237
239
|
}
|
|
238
240
|
elif result:
|
|
239
241
|
alsoProvides(self.request, IDisableCSRFProtection)
|
|
242
|
+
action = ""
|
|
240
243
|
if api.user.is_anonymous():
|
|
241
244
|
self._remember_identity(result)
|
|
242
245
|
action = "login"
|
|
243
246
|
else:
|
|
244
247
|
# Authenticated user, add an identity to it
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
try:
|
|
249
|
+
userid = api.user.get_current().getId()
|
|
250
|
+
self._add_identity(result, userid)
|
|
251
|
+
action = "add_identity"
|
|
252
|
+
except ValueError as err:
|
|
253
|
+
logger.exception(err)
|
|
254
|
+
|
|
247
255
|
user = api.user.get_current()
|
|
248
256
|
# Make sure we are not setting cookies here
|
|
249
257
|
# as it will break the authentication mechanism with JWT tokens
|
|
250
258
|
self.request.response.cookies = {}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return {"token":
|
|
259
|
+
if action:
|
|
260
|
+
self._annotate_transaction(action, user=user)
|
|
261
|
+
return {"token": self.get_token(user)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from pas.plugins.authomatic.testing import AUTHOMATIC_PLONE_INTEGRATION_TESTING
|
|
1
2
|
from pas.plugins.authomatic.testing import AUTHOMATIC_ZOPE_FIXTURE
|
|
2
3
|
from pas.plugins.authomatic.tests.mocks import make_user
|
|
3
4
|
|
|
@@ -56,6 +57,19 @@ class TestPlugin(unittest.TestCase):
|
|
|
56
57
|
self.assertEqual(admin["pluginid"], "users")
|
|
57
58
|
self.assertEqual(self.aclu.getUserById("admin").getId(), "admin")
|
|
58
59
|
|
|
60
|
+
|
|
61
|
+
class TestPlonePlugin(unittest.TestCase):
|
|
62
|
+
|
|
63
|
+
layer = AUTHOMATIC_PLONE_INTEGRATION_TESTING
|
|
64
|
+
|
|
65
|
+
def setUp(self):
|
|
66
|
+
# create plugin
|
|
67
|
+
from pas.plugins.authomatic.setuphandlers import _add_plugin
|
|
68
|
+
|
|
69
|
+
self.aclu = self.layer["app"].acl_users
|
|
70
|
+
_add_plugin(self.aclu, "authomatic")
|
|
71
|
+
self.plugin = self.aclu["authomatic"]
|
|
72
|
+
|
|
59
73
|
def test_user_enumaration(self):
|
|
60
74
|
make_user("123joe", testcase=self)
|
|
61
75
|
make_user("123jane", testcase=self)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pas.plugins.authomatic
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Provides OAuth2/OpenID login for Plone using Authomatic.
|
|
5
5
|
Home-page: https://github.com/collective/pas.plugins.authomatic
|
|
6
6
|
Author: Jens Klein, Matthias Dollfuss, and Érico Andrei
|
|
@@ -28,8 +28,18 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
28
28
|
Classifier: Programming Language :: Python
|
|
29
29
|
Requires-Python: >=3.7
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
|
-
Provides-Extra: test
|
|
32
31
|
License-File: LICENSE.txt
|
|
32
|
+
Requires-Dist: authomatic>=1.0.0
|
|
33
|
+
Requires-Dist: Products.CMFPlone>=5.2
|
|
34
|
+
Requires-Dist: plone.restapi
|
|
35
|
+
Requires-Dist: setuptools
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: collective.MockMailHost; extra == "test"
|
|
38
|
+
Requires-Dist: parameterized; extra == "test"
|
|
39
|
+
Requires-Dist: plone.app.testing; extra == "test"
|
|
40
|
+
Requires-Dist: plone.restapi[test]; extra == "test"
|
|
41
|
+
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
|
|
42
|
+
Requires-Dist: zest.releaser[recommended]; extra == "test"
|
|
33
43
|
|
|
34
44
|
|
|
35
45
|
<div align="center"><img alt="logo" src="https://raw.githubusercontent.com/collective/pas.plugins.authomatic/main/docs/authomatic.svg" width="70" /></div>
|
|
@@ -259,6 +269,14 @@ The project is licensed under the GPLv2.
|
|
|
259
269
|
|
|
260
270
|
# Changelog
|
|
261
271
|
|
|
272
|
+
## 1.3.0 (2024-11-21)
|
|
273
|
+
|
|
274
|
+
- Search users by fullname and email. @alecghica
|
|
275
|
+
- Fix login on Volto frontend when already logged-in in Plone Classic. @avoinea
|
|
276
|
+
- Add the possibility to override the ZopeRequestAdapter.
|
|
277
|
+
- Fix the authomatic view when it is reporting an exception that does not have a message attribute
|
|
278
|
+
|
|
279
|
+
|
|
262
280
|
## 1.2.0 (2023-09-13)
|
|
263
281
|
|
|
264
282
|
- Add Spanish translation. @macagua
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/meta.zcml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/testing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pas.plugins.authomatic-1.2.0 → pas_plugins_authomatic-1.3.0}/src/pas/plugins/authomatic/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|