Skip to content

Commit a374f40

Browse files
Merge pull request #10200 from rabbitmq/propagate_credentials_to_http_backend
Propagate all credentials to http backend
2 parents 920c664 + 0734e35 commit a374f40

33 files changed

+377
-109
lines changed

deps/rabbitmq_auth_backend_http/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ against the URIs listed in the configuration file. It will add query string
8484
* `username`: the name of the user
8585
* `password`: the password provided (may be missing if e.g. rabbitmq-auth-mechanism-ssl is used)
8686

87+
Note: This request may include additional http request parameters in addition to the ones listed above.
88+
For instance, if the user accessed RabbitMQ via the MQTT protocol, it is expected `client_id` and `vhost` request parameters too.
89+
8790
### vhost_path
8891

8992
* `username`: the name of the user
@@ -100,6 +103,9 @@ Note that you cannot create arbitrary virtual hosts using this plugin; you can o
100103
* `name`: the name of the resource
101104
* `permission`:the access level to the resource (`configure`, `write`, `read`): see [the Access Control guide](http://www.rabbitmq.com/access-control.html) for their meaning
102105

106+
Note: This request may include additional http request parameters in addition to the ones listed above.
107+
For instance, if the user accessed RabbitMQ via the MQTT protocol, it is expected `client_id` request parameter too.
108+
103109
### topic_path
104110

105111
* `username`: the name of the user

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
<developer>
1717
<email>[email protected]</email>
1818
<name>Team RabbitMQ</name>
19-
<organization>VMware, Inc. or its affiliates.</organization>
19+
<organization>Broadcom Inc. and/or its subsidiaries.</organization>
2020
<organizationUrl>https://rabbitmq.com</organizationUrl>
2121
</developer>
2222
</developers>
2323

2424
<organization>
25-
<name>VMware, Inc. or its affiliates.</name>
25+
<name>Broadcom Inc. and/or its subsidiaries.</name>
2626
<url>https://www.rabbitmq.com</url>
2727
</organization>
2828

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/AuthBackendHttpController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/BaseCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/RabbitMqAuthBackendHttp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/ResourceCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/TopicCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/main/java/com/rabbitmq/examples/VirtualHostCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright (c) 2017-2020 VMware, Inc. or its affiliates. All rights reserved.
6+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
77
*/
88

99
package com.rabbitmq.examples;

deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/src/test/java/com/rabbitmq/examples/AuthBackendHttpControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
33
* the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
44
*
5-
* <p>Copyright (c) 2017-2023 VMware, Inc. or its affiliates. All rights reserved.
5+
* (c) 2007-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
66
*/
77
package com.rabbitmq.examples;
88

0 commit comments

Comments
 (0)