Skip to content

Commit 6393491

Browse files
Revert changes
1 parent 258ee2b commit 6393491

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

selenium/test/authnz-msg-protocols/mqtt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('Having MQTT protocol enbled and the following auth_backends: ' + backe
4545
let oauthClientId = process.env.OAUTH_CLIENT_ID
4646
let oauthClientSecret = process.env.OAUTH_CLIENT_SECRET
4747
let openIdConfig = openIdConfiguration(oauthProviderUrl)
48+
log("Obtained token_endpoint : " + openIdConfig.token_endpoint)
4849
password = tokenFor(oauthClientId, oauthClientSecret, openIdConfig.token_endpoint)
4950
log("Obtained access token : " + password)
5051
}

selenium/test/oauth/rabbitmq.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
auth_backends.1 = rabbit_auth_backend_oauth2
22

3-
log.console.level = debug
4-
53
management.login_session_timeout = 1
64
management.oauth_enabled = true
75
management.oauth_client_id = rabbitmq_client_code

selenium/test/oauth/rabbitmq.spring-oauth-provider.conf

Lines changed: 0 additions & 3 deletions
This file was deleted.

selenium/test/utils.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,12 @@ module.exports = {
236236
}
237237
},
238238

239-
tokenFor: (client_id, client_secret, url = uaaUrl, scopes = "") => {
239+
tokenFor: (client_id, client_secret, url = uaaUrl) => {
240240
const req = new XMLHttpRequest()
241-
let params = 'client_id=' + client_id +
241+
const params = 'client_id=' + client_id +
242242
'&client_secret=' + client_secret +
243243
'&grant_type=client_credentials' +
244244
'&response_type=token'
245-
if (scopes != "") {
246-
params = params + "&scope=" + scopes
247-
}
248245
req.open('POST', url, false)
249246
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
250247
req.setRequestHeader('Accept', 'application/json')

0 commit comments

Comments
 (0)