Skip to content

Commit 9e77e6a

Browse files
Add config files for spring auth server
1 parent 8b5dafb commit 9e77e6a

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

selenium/authorization-server/src/main/java/com/rabbitmq/authorization_server/SecurityConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http)
8989
@Bean
9090
public UserDetailsService userDetailsService() {
9191
UserDetails userDetails = User.withDefaultPasswordEncoder()
92-
.username("user")
93-
.password("password")
94-
.roles("USER")
92+
.username("admin")
93+
.password("admin")
94+
.roles("ADMIN")
9595
.build();
9696

9797
return new InMemoryUserDetailsManager(userDetails);

selenium/suites/authnz-mgt/oauth-with-spring-authz-server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

55
TEST_CASES_PATH=/oauth/with-sp-initiated
66
TEST_CONFIG_PATH=/oauth
7-
PROFILES="spring-authz-server spring-oauth-provider spring-mgt-oauth-provider tls"
7+
PROFILES="spring spring-oauth-provider spring-mgt-oauth-provider tls"
88

99
source $SCRIPT/../../bin/suite_template $@
10-
runWith spring-authz-server
10+
runWith spring

selenium/test/oauth/env.docker.spring

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export SPRING_URL=https://spring:8443/
2+
export SPRING_CA_CERT=/config/oauth/spring/ca_spring_certificate.pem

selenium/test/oauth/env.local.spring

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export SPRING_URL=https://localhost:8080/
2+
export OAUTH_PROVIDER_URL=${SPRING_URL}
3+
export SPRING_CA_CERT=selenium/test/oauth/spring/ca_spring_certificate.pem
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export OAUTH_PROVIDER_URL=${SPRING_URL}
2+
export OAUTH_PROVIDER_CA_CERT=${SPRING_CA_CERT}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ client_alt_names ]
2+
email.1 = rabbit_client@localhost
3+
URI.1 = rabbit_client_id_uri

0 commit comments

Comments
 (0)