Skip to content

Commit b61d50c

Browse files
Use a generic idp url rather than uaa
1 parent 8b1321f commit b61d50c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

selenium/fakeportal/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const rabbitmq_url = process.env.RABBITMQ_URL;
77
const proxied_rabbitmq_url = process.env.PROXIED_RABBITMQ_URL;
88
const client_id = process.env.CLIENT_ID;
99
const client_secret = process.env.CLIENT_SECRET;
10-
const uaa_url = process.env.UAA_URL;
10+
const idp_token_endpoint = process.env.IDP_TOKEN_ENDPOINT;
1111
const port = process.env.PORT || 3000;
1212

1313
app.engine('.html', require('ejs').__express);
@@ -40,7 +40,7 @@ function default_if_blank(value, defaultValue) {
4040

4141
function access_token(id, secret) {
4242
const req = new XMLHttpRequest();
43-
const url = uaa_url + '/oauth/token';
43+
const url = idp_token_endpoint; // uaa_url + '/oauth/token';
4444
const params = 'client_id=' + id +
4545
'&client_secret=' + secret +
4646
'&grant_type=client_credentials' +

selenium/test/oauth/env.docker.uaa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export UAA_URL=https://uaa:8443
2+
export IDP_TOKEN_ENDPOINT=$UAA_URL/oauth/token

selenium/test/oauth/env.local.uaa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export UAA_URL=https://localhost:8443
2+
export IDP_TOKEN_ENDPOINT=$UAA_URL/oauth/token

0 commit comments

Comments
 (0)