Skip to content

Commit

Permalink
Merge pull request #474 from terrestris/fix-client-sec
Browse files Browse the repository at this point in the history
Make client accessible for authenticated users only
  • Loading branch information
dnlkoch committed Feb 24, 2022
2 parents 7a61b3f + fb20347 commit 559aa73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ protected void customHttpConfiguration(HttpSecurity http) throws Exception {
"/swagger-ui/**",
"/webjars/springfox-swagger-ui/**",
"/swagger-resources/**",
"/v2/api-docs",
"/client/**"
"/v2/api-docs"
)
.permitAll()
.antMatchers(
Expand Down
15 changes: 6 additions & 9 deletions shogun-boot/src/main/resources/templates/admin-client-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ var shogunApplicationConfig = {
appPrefix: '/admin',
path: {
base: 'https://localhost',
configBase: '/formconfigs',
swagger: '/v2/api-docs',
user: '/users',
layer: '/layers',
imageFile: '/imagefiles',
application: '/applications',
appInfo: '/info/app',
auth: {
login: '/auth/login',
Expand All @@ -39,9 +39,6 @@ var shogunApplicationConfig = {
evictCache: '/cache/evict',
metrics: '/actuator/metrics'
},
models: [
'Application'
],
dashboard: {
news: {
visible: false
Expand All @@ -64,16 +61,16 @@ var shogunApplicationConfig = {
applications: {
visible: true,
schemas: {
clientConfig: 'IhkApplicationClientConfig',
layerTree: 'SHOGunLayerTree',
layerConfig: 'LayerConfig'
clientConfig: 'DefaultApplicationClientConfig',
layerTree: 'DefaultLayerTree',
layerConfig: 'DefaultApplicationLayerConfig'
}
},
layers: {
visible: true,
schemas: {
clientConfig: 'SHOGunLayerClientConfig',
sourceConfig: 'SHOGunLayerSourceConfig',
clientConfig: 'DefaultLayerClientConfig',
sourceConfig: 'DefaultLayerSourceConfig',
features: 'GeoJsonObject'
}
},
Expand Down
2 changes: 1 addition & 1 deletion shogun-boot/src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h3>GIS client</h3>
Give me maps! This shows an exemplary map client consuming the application context of SHOGun.
</p>
<a href="./client" class="icon-link">
Open
Open <i class="fas fa-lock"></i>
</a>
</div>
<div class="feature col">
Expand Down

0 comments on commit 559aa73

Please sign in to comment.