You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/advanced-topics.adoc
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,31 @@ A defined set of values shared across the messages is a good candidate: geograph
86
86
Cardinality of filter values can be from a few to a few thousands.
87
87
Extreme cardinality (a couple or dozens of thousands) can make filtering less efficient.
88
88
89
+
=== OAuth 2 Support
90
+
91
+
The client can authenticate against an OAuth 2 server like https://github.com/cloudfoundry/uaa[UAA].
92
+
It uses the https://tools.ietf.org/html/rfc6749#section-4.4[OAuth 2 Client Credentials flow].
93
+
The https://www.rabbitmq.com/docs/oauth2[OAuth 2 plugin] must be enabled on the server side and configured to use the same OAuth 2 server as the client.
94
+
95
+
How to retrieve the OAuth 2 token is configured at the environment level:
<5> Set optional parameters (depends on the OAuth 2 server)
107
+
<6> Set the SSL context (e.g. to verify and trust the identity of the OAuth 2 server)
108
+
109
+
The environment retrieves tokens and uses them to create stream connections.
110
+
It also takes care of refreshing the tokens before they expire and of re-authenticating existing connections so the broker does not close them when their token expires.
111
+
112
+
The environment uses the same token for all the connections it maintains.
113
+
89
114
=== Using Native `epoll`
90
115
91
116
The stream Java client uses the https://netty.io/[Netty] network framework and its Java NIO transport implementation by default.
0 commit comments