Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
daniel-pimenta-DME committed Oct 15, 2023
2 parents 826128b + f7608b6 commit bd9757c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demos/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ volumes:
networks:
eoepca_network:
driver: bridge
name: eoepca_network
name: eoepca_network
2 changes: 1 addition & 1 deletion demos/gatekeeper-echo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ enable-uma: true
enable-logout-redirect: true
enable-metrics: true
enable-logging: true
listen: :3000
listen: :3000
3 changes: 1 addition & 2 deletions demos/gatekeeper-resource-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ client-id: resource-server
client-secret: NQDKaX9jBYGS8rYW0KOHhofYGI54FLPe
encryption-key: AgXa7xRcoClDEU0ZDSH4X0XhL5Qy2Z2j
upstream-url: http://spring-boot-oauth2-resource-server:7072
#no-proxy: true
secure-cookie: false
enable-request-id: true
enable-refresh-tokens: true
Expand All @@ -12,4 +11,4 @@ enable-uma: true
enable-logout-redirect: true
enable-metrics: true
enable-logging: true
listen: :3001
listen: :3001
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ SecurityFilterChain filterChain(HttpSecurity http, Converter<Jwt, ? extends Abst
new AntPathRequestMatcher("/v3/api-docs/**")
).permitAll()
.requestMatchers(new AntPathRequestMatcher("/api/customers")).hasAnyRole("ADMIN", "REALM-ADMIN")

.anyRequest().authenticated()
);
// @formatter:on
Expand Down Expand Up @@ -131,4 +132,4 @@ public JwtAuthenticationToken convert(Jwt jwt) {

}

}
}
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ services:
ports:
- '5566:5566'
environment:
- IDENTITY_AUTH_SERVER_URL=http://keycloak:8080/
- IDENTITY_ADMIN_PASSWORD=admin
- IDENTITY_REALM=master
- IDENTITY_RESOURCE_SERVER_ENDPOINT=http://spring-boot-oauth2-resource-server:7071
- AUTH_SERVER_URL=http://keycloak:8080/
- ADMIN_PASSWORD=admin
- REALM=master
- RESOURCE_SERVER_ENDPOINT=http://spring-boot-oauth2-resource-server:7071
restart: on-failure
keycloak:
image: quay.io/keycloak/keycloak:22.0.3
Expand Down Expand Up @@ -101,4 +101,4 @@ services:
networks:
eoepca_network:
driver: bridge
name: eoepca_network
name: eoepca_network
2 changes: 1 addition & 1 deletion gatekeeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ enable-uma: true
enable-logout-redirect: true
enable-metrics: true
enable-logging: true
listen: :3000
listen: :3000
2 changes: 1 addition & 1 deletion identityutils/keycloak_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ def delete_client_scopes(self, client_id, scope_id):
data_raw = self.keycloak_admin.raw_delete(url.format(**params_path))
return raise_error_from_response(
data_raw
)
)

0 comments on commit bd9757c

Please sign in to comment.