pyams-security 2.3.2__tar.gz → 2.3.4__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.
- {pyams_security-2.3.2 → pyams_security-2.3.4}/PKG-INFO +13 -1
- {pyams_security-2.3.2 → pyams_security-2.3.4}/docs/HISTORY.rst +9 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/setup.py +1 -1
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/policy.py +8 -5
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/PKG-INFO +13 -1
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/entry_points.txt +1 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/LICENSE +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/MANIFEST.in +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/docs/README.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/setup.cfg +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/api/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/credential.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/README.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/credentials.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/manager.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/notifications.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/passwords.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/plugins.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/policy.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/principals.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/profiles.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/rest.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/roles.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/security.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/doctests/users.rst +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/generations/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/generations/evolve1.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/include.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/index.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/base.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/names.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/notification.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/plugin.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/profile.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/rest.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/interfaces/site.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.mo +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/locales/pyams_security.pot +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/notification.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/password.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/permission.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/admin.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/group.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/password-reset.pt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/register-body.pt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/register-info.pt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/register-message.pt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/userfolder.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/principal.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/profile.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/property.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/rest.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/role.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/schema.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/security.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/site.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/tests/__init__.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/tests/test_utilsdocs.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/tests/test_utilsdocstrings.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/utility.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/vocabulary.py +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/SOURCES.txt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/dependency_links.txt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/namespace_packages.txt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/not-zip-safe +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/requires.txt +0 -0
- {pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyams_security
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
7
7
|
Author-email: tflorac@ulthar.net
|
|
8
8
|
License: ZPL
|
|
9
9
|
Keywords: Pyramid PyAMS
|
|
10
|
+
Platform: UNKNOWN
|
|
10
11
|
Classifier: License :: OSI Approved :: Zope Public License
|
|
11
12
|
Classifier: Development Status :: 4 - Beta
|
|
12
13
|
Classifier: Programming Language :: Python
|
|
@@ -54,6 +55,15 @@ store roles assigned to principals.
|
|
|
54
55
|
Changelog
|
|
55
56
|
=========
|
|
56
57
|
|
|
58
|
+
2.3.4
|
|
59
|
+
-----
|
|
60
|
+
- disable authentication of pre-authenticated credentials as defined by remote user
|
|
61
|
+
authentication package
|
|
62
|
+
|
|
63
|
+
2.3.3
|
|
64
|
+
-----
|
|
65
|
+
- added exception handler in identity getter
|
|
66
|
+
|
|
57
67
|
2.3.2
|
|
58
68
|
-----
|
|
59
69
|
- updated internal service identity checker
|
|
@@ -294,3 +304,5 @@ Changelog
|
|
|
294
304
|
1.0.0
|
|
295
305
|
-----
|
|
296
306
|
- initial release
|
|
307
|
+
|
|
308
|
+
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
2.3.4
|
|
5
|
+
-----
|
|
6
|
+
- disable authentication of pre-authenticated credentials as defined by remote user
|
|
7
|
+
authentication package
|
|
8
|
+
|
|
9
|
+
2.3.3
|
|
10
|
+
-----
|
|
11
|
+
- added exception handler in identity getter
|
|
12
|
+
|
|
4
13
|
2.3.2
|
|
5
14
|
-----
|
|
6
15
|
- updated internal service identity checker
|
|
@@ -23,7 +23,7 @@ DOCS = os.path.join(os.path.dirname(__file__),
|
|
|
23
23
|
README = os.path.join(DOCS, 'README.rst')
|
|
24
24
|
HISTORY = os.path.join(DOCS, 'HISTORY.rst')
|
|
25
25
|
|
|
26
|
-
version = '2.3.
|
|
26
|
+
version = '2.3.4'
|
|
27
27
|
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
|
|
28
28
|
|
|
29
29
|
tests_require = [
|
|
@@ -101,7 +101,7 @@ class PyAMSSecurityPolicy:
|
|
|
101
101
|
else:
|
|
102
102
|
try:
|
|
103
103
|
request_principal_id = request.principal.id
|
|
104
|
-
except AttributeError:
|
|
104
|
+
except (RecursionError, AttributeError):
|
|
105
105
|
pass
|
|
106
106
|
else:
|
|
107
107
|
if request_principal_id == INTERNAL_USER_ID:
|
|
@@ -112,10 +112,13 @@ class PyAMSSecurityPolicy:
|
|
|
112
112
|
if not principal_id:
|
|
113
113
|
for plugin in self.credentials_plugins:
|
|
114
114
|
credentials = plugin.extract_credentials(request)
|
|
115
|
-
if
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
if credentials is not None:
|
|
116
|
+
if credentials.attributes.get('pre_authenticated'):
|
|
117
|
+
principal_id = credentials.id
|
|
118
|
+
elif sm is not None:
|
|
119
|
+
principal_id = sm.authenticate(credentials, request)
|
|
120
|
+
if IPrincipalInfo.providedBy(principal_id):
|
|
121
|
+
principal_id = principal_id.id
|
|
119
122
|
if principal_id is not None:
|
|
120
123
|
identity = {
|
|
121
124
|
'userid': principal_id
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyams-security
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
7
7
|
Author-email: tflorac@ulthar.net
|
|
8
8
|
License: ZPL
|
|
9
9
|
Keywords: Pyramid PyAMS
|
|
10
|
+
Platform: UNKNOWN
|
|
10
11
|
Classifier: License :: OSI Approved :: Zope Public License
|
|
11
12
|
Classifier: Development Status :: 4 - Beta
|
|
12
13
|
Classifier: Programming Language :: Python
|
|
@@ -54,6 +55,15 @@ store roles assigned to principals.
|
|
|
54
55
|
Changelog
|
|
55
56
|
=========
|
|
56
57
|
|
|
58
|
+
2.3.4
|
|
59
|
+
-----
|
|
60
|
+
- disable authentication of pre-authenticated credentials as defined by remote user
|
|
61
|
+
authentication package
|
|
62
|
+
|
|
63
|
+
2.3.3
|
|
64
|
+
-----
|
|
65
|
+
- added exception handler in identity getter
|
|
66
|
+
|
|
57
67
|
2.3.2
|
|
58
68
|
-----
|
|
59
69
|
- updated internal service identity checker
|
|
@@ -294,3 +304,5 @@ Changelog
|
|
|
294
304
|
1.0.0
|
|
295
305
|
-----
|
|
296
306
|
- initial release
|
|
307
|
+
|
|
308
|
+
|
|
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
|
|
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
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/password-reset.pt
RENAMED
|
File without changes
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/register-body.pt
RENAMED
|
File without changes
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/plugin/templates/register-info.pt
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
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security/tests/test_utilsdocstrings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pyams_security-2.3.2 → pyams_security-2.3.4}/src/pyams_security.egg-info/namespace_packages.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|