Skip to content

Commit

Permalink
Merge pull request #861 from terrestris/graphql-public-access
Browse files Browse the repository at this point in the history
Anonymous access to graphql interface
  • Loading branch information
KaiVolland authored May 14, 2024
2 parents 9a9d2fe + 58d1c68 commit 38b45cd
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ default void customHttpConfiguration(HttpSecurity http) throws Exception {
"/graphiql/**"
)
.permitAll()
// Enable anonymous read access to entity endpoints
// will be secured via permission evaluators
// Enable anonymous read access to entity endpoints (secured via permission evaluators)
.requestMatchers(
HttpMethod.GET,
"/applications",
Expand All @@ -61,6 +60,12 @@ default void customHttpConfiguration(HttpSecurity http) throws Exception {
"/imagefiles/*"
)
.permitAll()
// Enable anonymous access to graphql (secured via permission evaluators)
.requestMatchers(
HttpMethod.POST,
"/graphql"
)
.permitAll()
.requestMatchers(
"/actuator/**",
"/cache/**",
Expand Down

0 comments on commit 38b45cd

Please sign in to comment.