-
Notifications
You must be signed in to change notification settings - Fork 41
CKAN 2.11 support #92
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,4 +30,8 @@ def authenticate(self, identity): | |
|
|
||
| # Delete session cookie information | ||
| def logout(self): | ||
| session.invalidate() | ||
| # Beaker session (CKAN < 2.11) uses invalidate(); Flask-Session uses clear() | ||
| if hasattr(session, 'invalidate'): | ||
| session.invalidate() | ||
| else: | ||
| session.clear() | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has been raised by other contributors as well, thanks for that team 👍 |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| {% if h.security_enable_totp() %} | ||
| <fieldset> | ||
| <legend>{{_('Two factor authentication')}}</legend> | ||
| {% link_for _('Manage two factor authentication'), controller='mfa_user', action='configure_mfa', id=data.id, class_='btn btn-default pull-left', icon='cog' %} | ||
| {% link_for _('Manage two factor authentication'), controller='mfa_user', action='configure_mfa', id=data.id, class_='btn btn-secondary float-start', icon='cog' %} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CKAN 2.10+ uses Bootstrap 5, and this makes it compatible with the BS5 styling. |
||
| </fieldset> | ||
| {% endif %} | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| # Required for CKAN < 2.11 (repoze.who-based auth) | ||
| Beaker~=1.11.0 | ||
| beaker-redis~=1.1.0 | ||
| pyotp~=2.6.0 | ||
| python-magic~=0.4.24 | ||
| redis~=4.1 | ||
| repoze.who~=2.4 | ||
| git+https://github.com/akissa/repoze.who-use_beaker@780379fd58b10264c0756feb6d3f232f797ba0cb#egg=repoze.who-use_beaker | ||
| six~=1.16.0 | ||
| WebOb~=1.8.7 | ||
| pyotp~=2.6.0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this moved downward?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the intent was that the 3 dependencies related to beaker and repoze are all essentially deprecated as per the comment, and grouped together for later removal. |
||
| python-magic~=0.4.24 | ||
| redis>=4.1 | ||
| six~=1.16.0 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newer versions of SQLAlchemy have dropped the
existsfunction, but all versions of SQLAlchemy that CKAN has used since 2.9+ have thehas_tablefunction available, so this will be backward compatible at least to there.