c2cgeoportal-geoportal 2.9rc125__py3-none-any.whl → 2.9rc126__py3-none-any.whl
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.
- c2cgeoportal_geoportal/__init__.py +2 -2
- c2cgeoportal_geoportal/lib/authentication.py +4 -1
- c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_CHANGELOG.txt +1 -1
- c2cgeoportal_geoportal/views/login.py +2 -1
- {c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/METADATA +1 -1
- {c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/RECORD +9 -9
- {c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/WHEEL +0 -0
- {c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/entry_points.txt +0 -0
- {c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2011-
|
1
|
+
# Copyright (c) 2011-2025, Camptocamp SA
|
2
2
|
# All rights reserved.
|
3
3
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
@@ -430,7 +430,7 @@ def create_get_user_from_request(
|
|
430
430
|
request.user_ = (
|
431
431
|
DBSession.query(User)
|
432
432
|
.filter_by(username=username, deactivated=False)
|
433
|
-
.options(joinedload(User.roles))
|
433
|
+
.options(joinedload(User.roles), joinedload(User.settings_role))
|
434
434
|
.first()
|
435
435
|
)
|
436
436
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2014-
|
1
|
+
# Copyright (c) 2014-2025, Camptocamp SA
|
2
2
|
# All rights reserved.
|
3
3
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
@@ -47,6 +47,7 @@ from pyramid.security import remember
|
|
47
47
|
from pyramid_multiauth import MultiAuthenticationPolicy
|
48
48
|
from zope.interface import implementer
|
49
49
|
|
50
|
+
import c2cgeoportal_commons.models
|
50
51
|
from c2cgeoportal_geoportal.lib import oauth2
|
51
52
|
from c2cgeoportal_geoportal.resources import defaultgroupsfinder
|
52
53
|
|
@@ -147,6 +148,8 @@ class OAuth2AuthenticationPolicy(CallbackAuthenticationPolicy): # type: ignore
|
|
147
148
|
_LOG.debug("OAuth verify_request: %s", valid)
|
148
149
|
if valid:
|
149
150
|
request.user_ = oauth2_request.user
|
151
|
+
if request.user_ is not None and c2cgeoportal_commons.models.DBSession is not None:
|
152
|
+
c2cgeoportal_commons.models.DBSession.add(request.user_)
|
150
153
|
|
151
154
|
return cast(str, request.user.username)
|
152
155
|
return None
|
@@ -31,7 +31,7 @@ Information to know before starting the upgrade
|
|
31
31
|
Information
|
32
32
|
===========
|
33
33
|
|
34
|
-
1. Hostname check:
|
34
|
+
1. Hostname / Referer check:
|
35
35
|
We add a hostname check on the `came_from` parameter, in the oauth2 login, allowed by
|
36
36
|
`vars.authentication.allowed_hosts` and in the OGC server clear cache, allowed by `vars.admin_interface.allowed_hosts`.
|
37
37
|
The behavior change a little bit in the `vars.shortener.allowed_hosts` and in the `vars.authorized_referers`.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2011-
|
1
|
+
# Copyright (c) 2011-2025, Camptocamp SA
|
2
2
|
# All rights reserved.
|
3
3
|
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
@@ -81,6 +81,7 @@ class Login:
|
|
81
81
|
|
82
82
|
def _functionality(self) -> dict[str, list[str | int | float | bool | list[Any] | dict[str, Any]]]:
|
83
83
|
functionality = {}
|
84
|
+
|
84
85
|
for func_ in get_setting(self.settings, ("functionalities", "available_in_templates"), []):
|
85
86
|
functionality[func_] = get_functionality(func_, self.request, is_intranet(self.request))
|
86
87
|
return functionality
|
{c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/RECORD
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
c2cgeoportal_geoportal/__init__.py,sha256=
|
1
|
+
c2cgeoportal_geoportal/__init__.py,sha256=hler6GARxGeT-VuGjkNtSi6a5_sMHBOdA6XNF3Fz3H8,38661
|
2
2
|
c2cgeoportal_geoportal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
c2cgeoportal_geoportal/resources.py,sha256=n42Gns8DKw32GstDoUdNgud6xdAidaRwgAuNHqGH-c4,2158
|
4
4
|
c2cgeoportal_geoportal/lib/__init__.py,sha256=_67fO_aXQZRnxPXcShHBcs38mdYU5ch0FNX89RwMTgA,10431
|
5
|
-
c2cgeoportal_geoportal/lib/authentication.py,sha256=
|
5
|
+
c2cgeoportal_geoportal/lib/authentication.py,sha256=Y45moPenxJ2dH3gIuk7yPr4tiS0Yw0OLw-bK8Ug92nE,10037
|
6
6
|
c2cgeoportal_geoportal/lib/bashcolor.py,sha256=LQgOgtFUvgJ4Ed3-YW3RPjvhBMZBbXBBkUZKE4unRCI,1889
|
7
7
|
c2cgeoportal_geoportal/lib/cacheversion.py,sha256=jc8jIKH_yE1NReC2kvUkTkpGERHObdWjPp6kGCWAU1o,3040
|
8
8
|
c2cgeoportal_geoportal/lib/caching.py,sha256=BZzIjgEUfv7puP8XvWY6PAni7HybcLMZrGam3D3mCyA,7124
|
@@ -137,7 +137,7 @@ c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/tests/test_app.
|
|
137
137
|
c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/tilegeneration/config.yaml.tmpl,sha256=9fRuzdxmdnuMX_s0iaWOYwTmdDgvljGgXNfWnZTg5Ow,6171
|
138
138
|
c2cgeoportal_geoportal/scaffolds/update/cookiecutter.json,sha256=SoXjnW7KpNpm1fSGDEIZrr-_LbR7yiYmXKbdeXatflw,617
|
139
139
|
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/.upgrade.yaml,sha256=8tPCziX4Wh6a2EOdjpLtvyqNtKcI7Rtjo8-bLQO8_Gg,2741
|
140
|
-
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_CHANGELOG.txt,sha256=
|
140
|
+
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_CHANGELOG.txt,sha256=l-LxuoecCzWi8avbX8RDC5audvYzQ5uFIr59jSdbXsc,11901
|
141
141
|
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/CONST_create_template/tests/test_testapp.py,sha256=FNZI6uMsZttVpWi0_TEmBgV6MjQDUmE5ar9be3FFkV8,1794
|
142
142
|
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/geoportal/.CONST_vars.yaml.swp,sha256=ZaB6IqVy0WDyGXRP7VQf8_LL_wjccSdthJtdIzw8FmE,16384
|
143
143
|
c2cgeoportal_geoportal/scaffolds/update/{{cookiecutter.project}}/geoportal/CONST_config-schema.yaml,sha256=yGKWjxc_U50dOpgknUwdAUHg1HK0Txn4fhEC1KeKg9c,23603
|
@@ -160,7 +160,7 @@ c2cgeoportal_geoportal/views/fulltextsearch.py,sha256=uiidVzz-mQ-_eF1GL3ZCWd67-p
|
|
160
160
|
c2cgeoportal_geoportal/views/geometry_processing.py,sha256=5dkJ20Lk12zqfzvmfws2YFxutSX2vxzdetQ4CmYxSi8,2958
|
161
161
|
c2cgeoportal_geoportal/views/i18n.py,sha256=EEyM5Y7DSuQffiwpFrkFclUcneRCiir4bakXY6lGZjI,5343
|
162
162
|
c2cgeoportal_geoportal/views/layers.py,sha256=I1_9N8Zui4b2t9qfX1Z4QGX7-vOPeUKKvyJWLH8g9Fo,29226
|
163
|
-
c2cgeoportal_geoportal/views/login.py,sha256=
|
163
|
+
c2cgeoportal_geoportal/views/login.py,sha256=EC8rSfuKBhNN3_QuYM4Zk7sbqrorXBbLejQpj-JG608,29142
|
164
164
|
c2cgeoportal_geoportal/views/mapserverproxy.py,sha256=ii_389rDXNMbtk4cWD9BSp3dDBZVin0_KsbsxPvCtkk,9498
|
165
165
|
c2cgeoportal_geoportal/views/memory.py,sha256=Vhw3vf4pjdl9DuW2PNOK6PZZOUPUn09Otym88_XIy3s,3754
|
166
166
|
c2cgeoportal_geoportal/views/ogcproxy.py,sha256=2i3cuZ2cRybEH-DvAQbrLnUxd9y3B0iKnwkpaJvhwSc,5215
|
@@ -187,8 +187,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
|
|
187
187
|
tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
|
188
188
|
tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
|
189
189
|
tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
|
190
|
-
c2cgeoportal_geoportal-2.
|
191
|
-
c2cgeoportal_geoportal-2.
|
192
|
-
c2cgeoportal_geoportal-2.
|
193
|
-
c2cgeoportal_geoportal-2.
|
194
|
-
c2cgeoportal_geoportal-2.
|
190
|
+
c2cgeoportal_geoportal-2.9rc126.dist-info/METADATA,sha256=CzvqjC_Fv3TR3piyreJpPpiaZ7JkJhLAknf6tYMOtCk,1887
|
191
|
+
c2cgeoportal_geoportal-2.9rc126.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
192
|
+
c2cgeoportal_geoportal-2.9rc126.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
|
193
|
+
c2cgeoportal_geoportal-2.9rc126.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
|
194
|
+
c2cgeoportal_geoportal-2.9rc126.dist-info/RECORD,,
|
{c2cgeoportal_geoportal-2.9rc125.dist-info → c2cgeoportal_geoportal-2.9rc126.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|