Skip to content

Commit c41cb1d

Browse files
Add missing config
And simplify suite name
1 parent 38bd16d commit c41cb1d

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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 spring-oauth-provider spring-mgt-oauth-provider tls"
7+
PROFILES="spring spring-oauth-provider tls"
88

99
source $SCRIPT/../../bin/suite_template $@
1010
runWith spring

selenium/test/oauth/env.spring

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export OAUTH_SERVER_CONFIG_DIR=${OAUTH_SERVER_CONFIG_BASEDIR}/oauth/spring
2+
export OAUTH_SCOPES="openid profile rabbitmq.tag:management"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auth_oauth2.issuer = ${SPRING_URL}
2+
auth_oauth2.https.cacertfile = ${SPRING_CA_CERT}

selenium/test/oauth/spring/application.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,26 @@ spring:
1515
location: /config/server_spring.jks
1616
password: foobar
1717
type: PKCS12
18-
18+
security:
19+
oauth2:
20+
client:
21+
registration:
22+
mgt_api_client:
23+
provider: spring
24+
client-id: mgt_api_client
25+
authorization-grant-type: client_credentials
26+
scopes:
27+
- openid
28+
- profile
29+
- rabbitmq.tag:management
30+
client-name: mgt_api_client
31+
rabbitmq_client_code:
32+
provider: spring
33+
client-id: rabbitmq_client_code
34+
authorization-grant-type: authorization_code
35+
redirect-uri: "https://localhost:15671/js/oidc-oauth/login-callback.html"
36+
scopes:
37+
- openid
38+
- profile
39+
- rabbitmq.tag:administrator
40+
client-name: rabbitmq_client_code

0 commit comments

Comments
 (0)