Skip to content

Commit aca9a06

Browse files
Fix configuration for idp-initiated with opaque tokens
1 parent 52a898e commit aca9a06

File tree

8 files changed

+26
-3
lines changed

8 files changed

+26
-3
lines changed

selenium/bin/components/fakeportal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ start_fakeportal() {
5353
--env IDP_TOKEN_ENDPOINT="${IDP_TOKEN_ENDPOINT}" \
5454
--env CLIENT_ID="${CLIENT_ID}" \
5555
--env CLIENT_SECRET="${CLIENT_SECRET}" \
56-
--env NODE_EXTRA_CA_CERTS=/etc/uaa/ca_${IDP}_certificate.pem \
56+
--env NODE_EXTRA_CA_CERTS=/etc/${IDP}/ca_${IDP}_certificate.pem \
5757
-v ${TEST_CONFIG_DIR}/${IDP}:/etc/${IDP} \
5858
-v ${FAKEPORTAL_DIR}:/code/fakeportal \
5959
mocha-test:${mocha_test_tag} run fakeportal

selenium/bin/components/spring

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
SPRING_DOCKER_IMAGE=${SPRING_DOCKER_IMAGE:-pivotalrabbitmq/spring-authorization-server:0.0.9}
3+
SPRING_DOCKER_IMAGE=${SPRING_DOCKER_IMAGE:-pivotalrabbitmq/spring-authorization-server:0.0.9.2}
44

55
ensure_spring() {
66
if docker ps | grep spring &> /dev/null; then

selenium/short-suite-management-ui

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authnz-mgt/oauth-with-uaa.sh
55
authnz-mgt/oauth-with-spring.sh
66
authnz-mgt/oauth-idp-initiated-with-uaa-and-prefix.sh
77
authnz-mgt/oauth-with-spring-with-opaque-tokens.sh
8+
authnz-mgt/oauth-idp-initiated-with-spring-opaque-tokens.sh
89
mgt/vhosts.sh
910
mgt/exchanges.sh
1011
mgt/queuesAndStreams.sh

selenium/suites/authnz-mgt/oauth-idp-initiated-with-spring-opaque-tokens.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-idp-initiated
66
TEST_CONFIG_PATH=/oauth
7-
PROFILES="spring idp-initiated spring-oauth-provider fakeportal-mgt-oauth-provider tls opaque-token"
7+
PROFILES="spring idp-initiated spring-oauth-provider fakeportal-mgt-oauth-provider opaque-token"
88

99
source $SCRIPT/../../bin/suite_template $@
1010
runWith spring fakeportal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export IDP_TOKEN_ENDPOINT=https://spring:8443/oauth2/token
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export IDP_TOKEN_ENDPOINT=https://spring:8443/oauth2/token

selenium/test/oauth/spring/application.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,26 @@ spring:
6666
- openid
6767
- profile
6868
client-name: mgt_api_client_opaque
69+
token:
70+
access-token-format: reference
71+
rabbit_idp_user:
72+
registration:
73+
provider: spring
74+
client-id: rabbit_idp_user
75+
client-secret: "{noop}rabbit_idp_user"
76+
authorization-grant-types:
77+
- client_credentials
78+
client-authentication-methods:
79+
- client_secret_basic
80+
- client_secret_post
81+
scopes:
82+
- openid
83+
- profile
84+
- rabbitmq.tag:management
85+
- rabbitmq.tag:administrator
86+
client-name: rabbit_idp_user
87+
audiencies:
88+
- rabbitmq
6989
token:
7090
access-token-format: reference
7191
mgt_api_client:

0 commit comments

Comments
 (0)