Skip to content

Commit

Permalink
— Modification: Change security matchers (/user/update1, /user/update…
Browse files Browse the repository at this point in the history
…2, /user/changePassword1) on denyAll() -> authenticated
  • Loading branch information
yyluchkiv committed Jun 13, 2024
1 parent 4df359a commit be8e08a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
DOCKER_MONGODB_SERVER_IMAGE: tech1-io/tech1-framework-b2b-mongodb-server
DOCKER_POSTGRES_SERVER_IMAGE: tech1-io/tech1-framework-b2b-postgres-server
DOCKER_VERSION: '2.8.7-SNAPSHOT'
DOCKER_PUSH_ENABLED: 'false'
DOCKER_PUSH_ENABLED: 'true'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### Changelog [v2.8.7]
TBD
Modification: Change security matchers (/user/update1, /user/update2, /user/changePassword1) on denyAll() -> authenticated
2 changes: 1 addition & 1 deletion docker/b2b-mongo-server/docker-compose.docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
t1f-b2b-mongodb-server:
image: ghcr.io/tech1-io/tech1-framework-b2b-mongodb-server:2.8.6
image: ghcr.io/tech1-io/tech1-framework-b2b-mongodb-server:2.8.7-SNAPSHOT
restart: unless-stopped
container_name: t1f-b2b-mongodb-server
networks:
Expand Down
2 changes: 1 addition & 1 deletion docker/b2b-postgres-server/docker-compose.docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
t1f-b2b-postgres-server:
image: ghcr.io/tech1-io/tech1-framework-b2b-postgres-server:2.8.6
image: ghcr.io/tech1-io/tech1-framework-b2b-postgres-server:2.8.7-SNAPSHOT
restart: unless-stopped
container_name: t1f-b2b-postgres-server
networks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.requestMatchers(POST, basePathPrefix + "/authentication/logout").permitAll()
.requestMatchers(POST, basePathPrefix + "/authentication/refreshToken").permitAll()
.requestMatchers(GET, basePathPrefix + "/session/current").authenticated()
.requestMatchers(POST, basePathPrefix + "/registration/register1").denyAll()
.requestMatchers(POST, basePathPrefix + "/user/update1").denyAll()
.requestMatchers(POST, basePathPrefix + "/registration/register1").authenticated()
.requestMatchers(POST, basePathPrefix + "/user/update1").authenticated()
.requestMatchers(POST, basePathPrefix + "/user/update2").authenticated()
.requestMatchers(POST, basePathPrefix + "/user/changePassword1").denyAll();
.requestMatchers(POST, basePathPrefix + "/user/changePassword1").authenticated();

if (this.applicationFrameworkProperties.getSecurityJwtConfigs().getEssenceConfigs().getInvitationCodes().isEnabled()) {
authorizeHttpRequests
Expand Down

0 comments on commit be8e08a

Please sign in to comment.