Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main with upstream main #1

Merged
merged 31 commits into from
Jul 31, 2024
Merged

Update main with upstream main #1

merged 31 commits into from
Jul 31, 2024

Conversation

avdata99
Copy link
Member

Syncing this repo

amercader and others added 30 commits September 29, 2022 21:08
CKAN 2.9.6 introduced a security change in the way Repoze auth cookies
are set up. Previously the user identifier was the user name, but that
has been changed to the user internal id plus a serial autoincrement
(currently static).
As ckanext-saml2auth calls the `set_repoze_user` directly we need to
update what gets passed to be stored in the cookie, otherwise the user
will never be logged in.
Previous versions should keep using the user name to avoid the same
problem.

Note that all this will no longer be relevant on CKAN 2.10 as it uses a
completely different login system.
From the upstream tests, it was found that sometimes there may not be a user
Since I can't diagnose the python 3.9 issue locally, I just want to see if it's a python 3.9 specific issue, or if there is something else going wrong
Tested locally with python 3.9 and ckan 2.10.
Check https://github.com/IdentityPython/pysaml2/releases/tag/v7.4.0

Error I saw:

```
from ckanext.saml2auth.client import Saml2Client
  File "/__w/ckanext-unhcr/ckanext-unhcr/ckanext-saml2auth/ckanext/saml2auth/client.py", line 19, in <module>
    from saml2.client import Saml2Client
  File "/usr/lib/python3.8/site-packages/pysaml2-7.4.0-py3.8.egg/saml2/__init__.py", line 432, in <module>
    class SamlBase(ExtensionContainer):
  File "/usr/lib/python3.8/site-packages/pysaml2-7.4.0-py3.8.egg/saml2/__init__.py", line 442, in SamlBase
    c_child_order: list[str] = []
TypeError: 'type' object is not subscriptable
```
pysqml2 7.4 requires python 3.9
@avdata99 avdata99 merged commit 0f559d4 into main Jul 31, 2024
0 of 7 checks passed
@avdata99 avdata99 deleted the up-main branch July 31, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants