Skip to content

Commit 582881d

Browse files
authored
Restrict authenticatedRules (#1982)
1 parent 91c221d commit 582881d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

geonode_mapstore_client/templates/geonode-mapstore-client/_geonode_config.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,17 @@
162162
useAuthenticationRules: true,
163163
authenticationRules: [
164164
{
165-
urlPattern: '.*geoserver.*',
165+
urlPattern: geoServerPublicLocation + '.*',
166166
authkeyParamName: 'access_token',
167167
method: 'authkey'
168168
},
169169
{
170-
urlPattern: '.*gs.*',
170+
urlPattern: siteUrl + 'gs.*',
171171
authkeyParamName: 'access_token',
172172
method: 'authkey'
173173
},
174174
{
175-
urlPattern: '.*api/v2.*',
175+
urlPattern: siteUrl + 'api/v2.*',
176176
method: 'bearer'
177177
}
178178
],

0 commit comments

Comments
 (0)