pas.plugins.authomatic 1.1.0__tar.gz → 1.1.2__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.1.2/.editorconfig +36 -0
- pas.plugins.authomatic-1.1.2/CHANGELOG.md +150 -0
- pas.plugins.authomatic-1.1.2/CONTRIBUTORS.md +3 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/MANIFEST.in +1 -1
- pas.plugins.authomatic-1.1.2/Makefile +116 -0
- {pas.plugins.authomatic-1.1.0/src/pas.plugins.authomatic.egg-info → pas.plugins.authomatic-1.1.2}/PKG-INFO +20 -5
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/pyproject.toml +9 -10
- pas.plugins.authomatic-1.1.2/requirements.txt +1 -0
- pas.plugins.authomatic-1.1.2/setup.cfg +4 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/setup.py +4 -2
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/default/browserlayer.xml +1 -1
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/default/controlpanel.xml +1 -1
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/default/metadata.xml +1 -1
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/default/registry.xml +1 -1
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/uninstall/browserlayer.xml +1 -1
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/uninstall/controlpanel.xml +2 -2
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles/uninstall/registry.xml +3 -3
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2/src/pas.plugins.authomatic.egg-info}/PKG-INFO +20 -5
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/SOURCES.txt +5 -1
- pas.plugins.authomatic-1.1.2/src/pas.plugins.authomatic.egg-info/entry_points.txt +5 -0
- pas.plugins.authomatic-1.1.0/setup.cfg +0 -11
- pas.plugins.authomatic-1.1.0/src/pas.plugins.authomatic.egg-info/entry_points.txt +0 -6
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/.coveragerc +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/LICENSE.txt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/README.md +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/docs/authomatic.svg +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/docs/plone-control-panel.png +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/docs/plugin-settings.png +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/add_plugin.pt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/authomatic.png +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/authomatic.pt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/configure.zcml +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/controlpanel.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/resources/authomatic-logo.svg +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/resources/authomatic.css +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/resources/authomatic.less +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/browser/view.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/configure.zcml +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/integration/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/integration/restapi.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/integration/zope.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/interfaces.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/de/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/fr/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/it/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/pas.plugins.authomatic.pot +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/pt_BR/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/ro/LC_MESSAGES/pas.plugins.authomatic.po +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/locales/update.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/meta.zcml +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/plugin.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/profiles.zcml +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/services/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/services/authomatic.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/services/configure.zcml +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/services/login.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/setuphandlers.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/testing.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/__init__.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/mocks.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_browser_controlpanel.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_plugin.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_services_authomatic.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_services_login.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_setup.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_setuphandler.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_upgrades.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_useridentities.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/tests/test_useridfactories.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/useridentities.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/useridfactories.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/utils.py +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/dependency_links.txt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/namespace_packages.txt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/not-zip-safe +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/requires.txt +0 -0
- {pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas.plugins.authomatic.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# EditorConfig Configurtaion file, for more details see:
|
|
2
|
+
# https://EditorConfig.org
|
|
3
|
+
# EditorConfig is a convention description, that could be interpreted
|
|
4
|
+
# by multiple editors to enforce common coding conventions for specific
|
|
5
|
+
# file types
|
|
6
|
+
|
|
7
|
+
# top-most EditorConfig file:
|
|
8
|
+
# Will ignore other EditorConfig files in Home directory or upper tree level.
|
|
9
|
+
root = true
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
[*] # For All Files
|
|
13
|
+
# Unix-style newlines with a newline ending every file
|
|
14
|
+
end_of_line = lf
|
|
15
|
+
insert_final_newline = true
|
|
16
|
+
trim_trailing_whitespace = true
|
|
17
|
+
# Set default charset
|
|
18
|
+
charset = utf-8
|
|
19
|
+
# Indent style default
|
|
20
|
+
indent_style = space
|
|
21
|
+
# Max Line Length - a hard line wrap, should be disabled
|
|
22
|
+
max_line_length = off
|
|
23
|
+
|
|
24
|
+
[*.{py,cfg,ini}]
|
|
25
|
+
# 4 space indentation
|
|
26
|
+
indent_size = 4
|
|
27
|
+
|
|
28
|
+
[*.{html,dtml,pt,zpt,xml,zcml,js,json,less,css,yml,yaml}]
|
|
29
|
+
# 2 space indentation
|
|
30
|
+
indent_size = 2
|
|
31
|
+
|
|
32
|
+
[{Makefile,.gitmodules}]
|
|
33
|
+
# Tab indentation (no size specified, but view as 4 spaces)
|
|
34
|
+
indent_style = tab
|
|
35
|
+
indent_size = unset
|
|
36
|
+
tab_width = unset
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.1.2 (2023-03-15)
|
|
4
|
+
|
|
5
|
+
- Support Python 3.11 for Plone 6. @ericof
|
|
6
|
+
|
|
7
|
+
- Lint fixes @ericof
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## 1.1.1 (2022-10-14)
|
|
11
|
+
|
|
12
|
+
- Upgrade plone/code-analysis-action to version 2. @ericof
|
|
13
|
+
|
|
14
|
+
- Fix packaging issue related to CHANGELOG.md not being included in the source package. @ericof
|
|
15
|
+
|
|
16
|
+
- Support Python 3.10 for Plone 6. @ericof
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 1.1.0 (2022-10-10)
|
|
20
|
+
|
|
21
|
+
- Add the plone.restapi adapter to show the controlpanel in Volto. @erral
|
|
22
|
+
|
|
23
|
+
- Add possibility to redirect to `next_url` via provided cookie @avoinea
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1.0.0 (2022-07-25)
|
|
27
|
+
|
|
28
|
+
- Use plone/plone-setup GitHub Action. @ericof
|
|
29
|
+
|
|
30
|
+
- Add Brazilian Portuguese translation. @ericof
|
|
31
|
+
|
|
32
|
+
- Use plone/code-analysis-action GitHub Action for code analysis. @ericof
|
|
33
|
+
|
|
34
|
+
- Fix doChangeUser takes 2 positional arguments but 3 were given @avoinea
|
|
35
|
+
|
|
36
|
+
## 1.0b2 (2021-08-18)
|
|
37
|
+
|
|
38
|
+
- Fix tox setup, move CI from TravisCI to GitHub Actions. @jensens
|
|
39
|
+
|
|
40
|
+
- Code Style Black, Isort, zpretty and Pyupgrade applied. @jensens
|
|
41
|
+
|
|
42
|
+
- Add missing no-op methods for IUserManagement to plugin.
|
|
43
|
+
This fixes the tests. @jensens
|
|
44
|
+
|
|
45
|
+
- Drop Python 2 support and so require Plone 5.2. @jensens
|
|
46
|
+
|
|
47
|
+
- Include permissions from CMFCore to avoid ComponentLookupError. @bsuttor
|
|
48
|
+
|
|
49
|
+
- Fixed ModuleNotFoundError: No module named 'App.class_init' on Zope 5. @bsuttor
|
|
50
|
+
|
|
51
|
+
- Add french translation @mpeeters
|
|
52
|
+
|
|
53
|
+
- PAS event notification IPrincipalCreatedEvent. @jensens
|
|
54
|
+
|
|
55
|
+
- Python 3 and Plone 52 compatibility. @cekk
|
|
56
|
+
|
|
57
|
+
- Fix #44: Fullfill strictly exact_match when enumerating users @allusa
|
|
58
|
+
|
|
59
|
+
- Allow users deletion. @cekk
|
|
60
|
+
|
|
61
|
+
- Drop Plone < 5.1.x compatibility. @cekk
|
|
62
|
+
|
|
63
|
+
- Fix #54: Notification of PrincipalCreated event. @ericof
|
|
64
|
+
|
|
65
|
+
- Closes #55: Support plone.restapi. @ericof
|
|
66
|
+
|
|
67
|
+
## 1.0b1 (2017-11-20)
|
|
68
|
+
|
|
69
|
+
- Slighly beautify login modal. @jensens
|
|
70
|
+
|
|
71
|
+
- Fix #33" Page does not exist Control Settings. @jensens
|
|
72
|
+
|
|
73
|
+
- Fix #31: Link is broken to JSON configuration documentation in help text. @jensens
|
|
74
|
+
|
|
75
|
+
- Fix #28: After uninstall plone.external_login_url is still registered and the login broken. @jensens
|
|
76
|
+
|
|
77
|
+
- Support for Plone 5.1 tested (worked, ust control-panel icon needed some tweak).
|
|
78
|
+
Buildout configuration for 5.1 added. @jensens
|
|
79
|
+
|
|
80
|
+
- Install: Hide non-valid profiles at install form. @jensens
|
|
81
|
+
|
|
82
|
+
- Additional checks to ensure to never have an empty/None key stored. @jensens
|
|
83
|
+
|
|
84
|
+
- Fix #27: Update user data after login. @jensens
|
|
85
|
+
|
|
86
|
+
- Fix filter users bug in enumerateUsers plugin where it was always returning
|
|
87
|
+
all the users. @sneridagh
|
|
88
|
+
|
|
89
|
+
- fix typo and wording of login message @tkimnguyen
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## 1.0a7 (2016-02-15)
|
|
93
|
+
|
|
94
|
+
- Workaround for None users. @sneridagh
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## 1.0a6 (2016-01-11)
|
|
98
|
+
|
|
99
|
+
- Fix #21: When you logout and then login again, a new user is created. @jensens
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## 1.0a5 (2015-12-04)
|
|
103
|
+
|
|
104
|
+
- Fix: #18 "Provider Login" option for "Generator for Plone User ID" seems
|
|
105
|
+
broken @jensens
|
|
106
|
+
|
|
107
|
+
- Fix: Title indicates if an identity is added @jensens
|
|
108
|
+
|
|
109
|
+
- Fix: Correct usage of plone.protect @jensens
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## 1.0a4 (2015-11-20)
|
|
113
|
+
|
|
114
|
+
- Added german translation @jensens
|
|
115
|
+
|
|
116
|
+
- Restored Plone 4 compatibility @keul
|
|
117
|
+
|
|
118
|
+
- Added italian translation @keul
|
|
119
|
+
|
|
120
|
+
- Proper uninstall @keul
|
|
121
|
+
|
|
122
|
+
## 1.0a3 (2015-11-15)
|
|
123
|
+
|
|
124
|
+
- Refactor authomatic-handler to enable adding identities. @jensens
|
|
125
|
+
|
|
126
|
+
- Fix: use secret from settings as secret for Authomatic. @jensens
|
|
127
|
+
|
|
128
|
+
- Renamed view ``authomatic-login`` to ``authomatic-handler``, because this
|
|
129
|
+
view will be used to add an identity too (url must be registered on provider
|
|
130
|
+
side sometimes and we want to do this only once). @jensens
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## 1.0a2 (2015-11-14)
|
|
134
|
+
|
|
135
|
+
- Minimal validation of JSON. @jensens
|
|
136
|
+
|
|
137
|
+
- Make the whole ``remember`` procedure a ``safeWrite`` if called from login
|
|
138
|
+
view. We can not pass a authenticator token here, because of redirects and
|
|
139
|
+
expected return urls . @jensens
|
|
140
|
+
|
|
141
|
+
- Allow selection of user id generator strategy. @jensens
|
|
142
|
+
|
|
143
|
+
- Allow multiple services for one user. This changes a lot behind the scenes. @jensens
|
|
144
|
+
|
|
145
|
+
- Use authomatic.core.User attributes instead of raw provider data. closes [#9](https://github.com/collective/pas.plugins.authomatic/issues/9) @ericof
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## 1.0a1 (2015-10-28)
|
|
149
|
+
|
|
150
|
+
- Initial release.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
### Defensive settings for make:
|
|
2
|
+
# https://tech.davis-hansson.com/p/make/
|
|
3
|
+
SHELL:=bash
|
|
4
|
+
.ONESHELL:
|
|
5
|
+
.SHELLFLAGS:=-xeu -o pipefail -O inherit_errexit -c
|
|
6
|
+
.SILENT:
|
|
7
|
+
.DELETE_ON_ERROR:
|
|
8
|
+
MAKEFLAGS+=--warn-undefined-variables
|
|
9
|
+
MAKEFLAGS+=--no-builtin-rules
|
|
10
|
+
|
|
11
|
+
# We like colors
|
|
12
|
+
# From: https://coderwall.com/p/izxssa/colored-makefile-for-golang-projects
|
|
13
|
+
RED=`tput setaf 1`
|
|
14
|
+
GREEN=`tput setaf 2`
|
|
15
|
+
RESET=`tput sgr0`
|
|
16
|
+
YELLOW=`tput setaf 3`
|
|
17
|
+
|
|
18
|
+
PLONE5=5.2-latest
|
|
19
|
+
PLONE6=6.0-latest
|
|
20
|
+
|
|
21
|
+
BACKEND_FOLDER=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
22
|
+
|
|
23
|
+
CODE_QUALITY_VERSION=2
|
|
24
|
+
ifndef LOG_LEVEL
|
|
25
|
+
LOG_LEVEL=INFO
|
|
26
|
+
endif
|
|
27
|
+
CURRENT_USER=$$(whoami)
|
|
28
|
+
USER_INFO=$$(id -u ${CURRENT_USER}):$$(getent group ${CURRENT_USER}|cut -d: -f3)
|
|
29
|
+
LINT=docker run --rm -e LOG_LEVEL="${LOG_LEVEL}" -v "${BACKEND_FOLDER}":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} check
|
|
30
|
+
FORMAT=docker run --rm --user="${USER_INFO}" -e LOG_LEVEL="${LOG_LEVEL}" -v "${BACKEND_FOLDER}":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} format
|
|
31
|
+
|
|
32
|
+
PACKAGE_NAME=pas.plugins.authomatic
|
|
33
|
+
PACKAGE_PATH=src/
|
|
34
|
+
CHECK_PATH=setup.py $(PACKAGE_PATH)
|
|
35
|
+
|
|
36
|
+
all: build
|
|
37
|
+
|
|
38
|
+
# Add the following 'help' target to your Makefile
|
|
39
|
+
# And add help text after each target name starting with '\#\#'
|
|
40
|
+
.PHONY: help
|
|
41
|
+
help: ## This help message
|
|
42
|
+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
43
|
+
|
|
44
|
+
bin/pip:
|
|
45
|
+
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
|
|
46
|
+
python3 -m venv .
|
|
47
|
+
bin/pip install -U pip wheel
|
|
48
|
+
|
|
49
|
+
.PHONY: build-plone-5.2
|
|
50
|
+
build-plone-5.2: bin/pip ## Build Plone 5.2
|
|
51
|
+
@echo "$(GREEN)==> Build with Plone 5.2$(RESET)"
|
|
52
|
+
bin/pip install Plone plone.app.testing -c https://dist.plone.org/release/$(PLONE5)/constraints.txt
|
|
53
|
+
bin/pip install -e ".[test]"
|
|
54
|
+
bin/mkwsgiinstance -d . -u admin:admin
|
|
55
|
+
|
|
56
|
+
.PHONY: build-plone-6.0
|
|
57
|
+
build-plone-6.0: bin/pip ## Build Plone 6.0
|
|
58
|
+
@echo "$(GREEN)==> Build with Plone 6.0$(RESET)"
|
|
59
|
+
bin/pip install Plone plone.app.testing -c https://dist.plone.org/release/$(PLONE6)/constraints.txt
|
|
60
|
+
bin/pip install -e ".[test]"
|
|
61
|
+
bin/mkwsgiinstance -d . -u admin:admin
|
|
62
|
+
|
|
63
|
+
.PHONY: build
|
|
64
|
+
build: build-plone-6.0 ## Build Plone 6.0
|
|
65
|
+
|
|
66
|
+
.PHONY: clean
|
|
67
|
+
clean: ## Remove old virtualenv and creates a new one
|
|
68
|
+
@echo "$(RED)==> Cleaning environment and build$(RESET)"
|
|
69
|
+
rm -rf bin lib lib64 include share etc var inituser pyvenv.cfg .installed.cfg
|
|
70
|
+
|
|
71
|
+
.PHONY: format
|
|
72
|
+
format: ## Format the codebase according to our standards
|
|
73
|
+
@echo "$(GREEN)==> Format codebase$(RESET)"
|
|
74
|
+
$(FORMAT)
|
|
75
|
+
|
|
76
|
+
.PHONY: lint
|
|
77
|
+
lint: ## check code style
|
|
78
|
+
$(LINT)
|
|
79
|
+
|
|
80
|
+
.PHONY: lint-black
|
|
81
|
+
lint-black: ## validate black formating
|
|
82
|
+
$(LINT) black
|
|
83
|
+
|
|
84
|
+
.PHONY: lint-flake8
|
|
85
|
+
lint-flake8: ## validate black formating
|
|
86
|
+
$(LINT) flake8
|
|
87
|
+
|
|
88
|
+
.PHONY: lint-isort
|
|
89
|
+
lint-isort: ## validate using isort
|
|
90
|
+
$(LINT) isort
|
|
91
|
+
|
|
92
|
+
.PHONY: lint-pyroma
|
|
93
|
+
lint-pyroma: ## validate using pyroma
|
|
94
|
+
$(LINT) pyroma
|
|
95
|
+
|
|
96
|
+
.PHONY: lint-zpretty
|
|
97
|
+
lint-zpretty: ## validate ZCML/XML using zpretty
|
|
98
|
+
$(LINT) zpretty
|
|
99
|
+
|
|
100
|
+
# i18n
|
|
101
|
+
bin/i18ndude: bin/pip
|
|
102
|
+
@echo "$(GREEN)==> Install translation tools$(RESET)"
|
|
103
|
+
bin/pip install i18ndude
|
|
104
|
+
|
|
105
|
+
.PHONY: i18n
|
|
106
|
+
i18n: bin/i18ndude ## Update locales
|
|
107
|
+
@echo "$(GREEN)==> Updating locales$(RESET)"
|
|
108
|
+
bin/update_locale
|
|
109
|
+
|
|
110
|
+
.PHONY: test
|
|
111
|
+
test: ## run tests
|
|
112
|
+
PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path $(PACKAGE_PATH)
|
|
113
|
+
|
|
114
|
+
.PHONY: start
|
|
115
|
+
start: ## Start a Plone instance on localhost:8080
|
|
116
|
+
PYTHONWARNINGS=ignore ./bin/runwsgi etc/zope.ini
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pas.plugins.authomatic
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
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 and Matthias Dollfuss
|
|
7
7
|
Author-email: dev@bluedynamics.com
|
|
8
8
|
License: GPL
|
|
9
9
|
Project-URL: Repository, https://github.com/collective/pas.plugins.authomatic/
|
|
10
|
-
Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/
|
|
10
|
+
Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md
|
|
11
11
|
Project-URL: Issues, https://github.com/collective/pas.plugins.authomatic/issues
|
|
12
12
|
Keywords: Python Plone PAS OAuth Authentication
|
|
13
|
-
Platform: UNKNOWN
|
|
14
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
15
14
|
Classifier: Environment :: Web Environment
|
|
16
15
|
Classifier: Framework :: Plone :: 5.2
|
|
@@ -24,6 +23,8 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.7
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
28
|
Classifier: Programming Language :: Python
|
|
28
29
|
Requires-Python: >=3.7
|
|
29
30
|
Description-Content-Type: text/markdown
|
|
@@ -258,6 +259,22 @@ The project is licensed under the GPLv2.
|
|
|
258
259
|
|
|
259
260
|
# Changelog
|
|
260
261
|
|
|
262
|
+
## 1.1.2 (2023-03-15)
|
|
263
|
+
|
|
264
|
+
- Support Python 3.11 for Plone 6. @ericof
|
|
265
|
+
|
|
266
|
+
- Lint fixes @ericof
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## 1.1.1 (2022-10-14)
|
|
270
|
+
|
|
271
|
+
- Upgrade plone/code-analysis-action to version 2. @ericof
|
|
272
|
+
|
|
273
|
+
- Fix packaging issue related to CHANGELOG.md not being included in the source package. @ericof
|
|
274
|
+
|
|
275
|
+
- Support Python 3.10 for Plone 6. @ericof
|
|
276
|
+
|
|
277
|
+
|
|
261
278
|
## 1.1.0 (2022-10-10)
|
|
262
279
|
|
|
263
280
|
- Add the plone.restapi adapter to show the controlpanel in Volto. @erral
|
|
@@ -392,5 +409,3 @@ The project is licensed under the GPLv2.
|
|
|
392
409
|
- Initial release.
|
|
393
410
|
|
|
394
411
|
|
|
395
|
-
|
|
396
|
-
|
|
@@ -19,12 +19,15 @@ exclude = '''
|
|
|
19
19
|
)
|
|
20
20
|
'''
|
|
21
21
|
|
|
22
|
+
[tool.check-manifest]
|
|
23
|
+
ignore = ["*.cfg", ".gitattributes"]
|
|
24
|
+
|
|
22
25
|
[tool.isort]
|
|
23
26
|
profile = "black"
|
|
24
27
|
force_alphabetical_sort = true
|
|
25
28
|
force_single_line = true
|
|
26
29
|
lines_after_imports = 2
|
|
27
|
-
line_length =
|
|
30
|
+
line_length = 120
|
|
28
31
|
|
|
29
32
|
[tool.flakeheaven]
|
|
30
33
|
format="grouped"
|
|
@@ -33,13 +36,9 @@ show_source=true
|
|
|
33
36
|
max-complexity=25
|
|
34
37
|
|
|
35
38
|
[tool.flakeheaven.plugins]
|
|
36
|
-
|
|
37
|
-
# - E501 line too long
|
|
38
|
-
# flake8 is already testing this, with max-line-length=100000 in .flake8,
|
|
39
|
-
# so pycodestyle should not test it.
|
|
40
|
-
# - W503 line break before binary operator
|
|
41
|
-
# Outdated recommendation, see https://www.flake8rules.com/rules/W503.html
|
|
42
|
-
mccabe = ["+*"]
|
|
43
|
-
pycodestyle = ["+*", "-E501", "-W503"]
|
|
39
|
+
pycodestyle = ["+*"]
|
|
44
40
|
pyflakes = ["+*"]
|
|
45
|
-
|
|
41
|
+
"flake8-*" = ["+*"]
|
|
42
|
+
|
|
43
|
+
[tool.plone-code-analysis]
|
|
44
|
+
paths = "setup.py src/"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
-e ".[test]"
|
|
@@ -11,7 +11,7 @@ long_description = f"""
|
|
|
11
11
|
|
|
12
12
|
setup(
|
|
13
13
|
name="pas.plugins.authomatic",
|
|
14
|
-
version="1.1.
|
|
14
|
+
version="1.1.2",
|
|
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,8 @@ setup(
|
|
|
29
29
|
"Programming Language :: Python :: 3.7",
|
|
30
30
|
"Programming Language :: Python :: 3.8",
|
|
31
31
|
"Programming Language :: Python :: 3.9",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
32
34
|
"Programming Language :: Python",
|
|
33
35
|
],
|
|
34
36
|
keywords="Python Plone PAS OAuth Authentication",
|
|
@@ -37,7 +39,7 @@ setup(
|
|
|
37
39
|
url="https://github.com/collective/pas.plugins.authomatic",
|
|
38
40
|
project_urls={
|
|
39
41
|
"Repository": "https://github.com/collective/pas.plugins.authomatic/",
|
|
40
|
-
"Changelog": "https://github.com/collective/pas.plugins.authomatic/blob/main/
|
|
42
|
+
"Changelog": "https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md", # noQA
|
|
41
43
|
"Issues": "https://github.com/collective/pas.plugins.authomatic/issues",
|
|
42
44
|
},
|
|
43
45
|
license="GPL",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
3
3
|
name="portal_controlpanel"
|
|
4
4
|
i18n:domain="pas.plugins.authomatic"
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
remove="True"
|
|
10
10
|
title="PAS Authomatic Plugin Settings"
|
|
11
11
|
>
|
|
12
|
-
|
|
12
|
+
</configlet>
|
|
13
13
|
|
|
14
14
|
</object>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<registry>
|
|
3
3
|
|
|
4
4
|
<records field="secret"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
prefix="plone.resources/pas-plugins-authomatic"
|
|
24
24
|
remove="True"
|
|
25
25
|
>
|
|
26
|
-
|
|
26
|
+
</records>
|
|
27
27
|
|
|
28
28
|
<records interface="Products.CMFPlone.interfaces.IBundleRegistry"
|
|
29
29
|
prefix="plone.bundles/authomatic-addon"
|
|
30
30
|
remove="True"
|
|
31
31
|
>
|
|
32
|
-
|
|
32
|
+
</records>
|
|
33
33
|
|
|
34
34
|
</registry>
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pas.plugins.authomatic
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
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 and Matthias Dollfuss
|
|
7
7
|
Author-email: dev@bluedynamics.com
|
|
8
8
|
License: GPL
|
|
9
9
|
Project-URL: Repository, https://github.com/collective/pas.plugins.authomatic/
|
|
10
|
-
Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/
|
|
10
|
+
Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md
|
|
11
11
|
Project-URL: Issues, https://github.com/collective/pas.plugins.authomatic/issues
|
|
12
12
|
Keywords: Python Plone PAS OAuth Authentication
|
|
13
|
-
Platform: UNKNOWN
|
|
14
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
15
14
|
Classifier: Environment :: Web Environment
|
|
16
15
|
Classifier: Framework :: Plone :: 5.2
|
|
@@ -24,6 +23,8 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.7
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
28
|
Classifier: Programming Language :: Python
|
|
28
29
|
Requires-Python: >=3.7
|
|
29
30
|
Description-Content-Type: text/markdown
|
|
@@ -258,6 +259,22 @@ The project is licensed under the GPLv2.
|
|
|
258
259
|
|
|
259
260
|
# Changelog
|
|
260
261
|
|
|
262
|
+
## 1.1.2 (2023-03-15)
|
|
263
|
+
|
|
264
|
+
- Support Python 3.11 for Plone 6. @ericof
|
|
265
|
+
|
|
266
|
+
- Lint fixes @ericof
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## 1.1.1 (2022-10-14)
|
|
270
|
+
|
|
271
|
+
- Upgrade plone/code-analysis-action to version 2. @ericof
|
|
272
|
+
|
|
273
|
+
- Fix packaging issue related to CHANGELOG.md not being included in the source package. @ericof
|
|
274
|
+
|
|
275
|
+
- Support Python 3.10 for Plone 6. @ericof
|
|
276
|
+
|
|
277
|
+
|
|
261
278
|
## 1.1.0 (2022-10-10)
|
|
262
279
|
|
|
263
280
|
- Add the plone.restapi adapter to show the controlpanel in Volto. @erral
|
|
@@ -392,5 +409,3 @@ The project is licensed under the GPLv2.
|
|
|
392
409
|
- Initial release.
|
|
393
410
|
|
|
394
411
|
|
|
395
|
-
|
|
396
|
-
|
|
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.1.0 → pas.plugins.authomatic-1.1.2}/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
|
|
File without changes
|
{pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/meta.zcml
RENAMED
|
File without changes
|
{pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/src/pas/plugins/authomatic/plugin.py
RENAMED
|
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.1.0 → pas.plugins.authomatic-1.1.2}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pas.plugins.authomatic-1.1.0 → pas.plugins.authomatic-1.1.2}/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
|