Skip to content

Commit 4ce0b26

Browse files
OAuth 2: some headings can be H2s
1 parent 3ea6207 commit 4ce0b26

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

docs/oauth2.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ auth_backends.1 = rabbit_auth_backend_oauth2
7979

8080
Next, let's take a look at the workflows the OAuth 2 plugin supports.
8181

82-
### Prerequisites {#prerequisites}
82+
## Prerequisites {#prerequisites}
8383

8484
To use the OAuth 2 plugin, all RabbitMQ nodes must be
8585

@@ -116,7 +116,7 @@ auth_oauth2.discovery_endpoint_params.appid = some-app-id
116116

117117
More detail is included in the next section about what happens during the authentication and how to configure OAuth 2.0 beyond the basic configuration shown previously.
118118

119-
### Authorization Flow {#authorization-flow}
119+
## Authorization Flow {#authorization-flow}
120120

121121
This plugin does not communicate with any OAuth 2.0 provider in order to authenticate user and grants access. Instead, it decodes an access token provided by the client and authorises a user based on the scopes found in the token.
122122

@@ -138,7 +138,7 @@ In chronological order, here is the sequence of events that occur when a client
138138
5. RabbitMQ validates that the token has the **audience** claim and whose value matches the `resource_server_id` (this operation can be deactivated by setting `auth_oauth2.verify_aud` to `false`).
139139
6. RabbitMQ translates the **scopes** found in the token into RabbitMQ **permissions** (the same permissions used in the RabbitMQ's internal database).
140140

141-
### Variables configurable in rabbitmq.conf {#variables-configurable}
141+
## Variables Configurable in rabbitmq.conf {#variables-configurable}
142142

143143
| Key | Documentation
144144
|--------------------------------------------|-----------
@@ -166,7 +166,7 @@ In chronological order, here is the sequence of events that occur when a client
166166
| `auth_oauth2.default_oauth_provider` | ID of the OAuth 2.0 provider used for the `auth_oauth2.resource_servers`, that did not specify any (via the variable `oauth_provider_id`) or when `auth_oauth2.jwks_uri` and `auth_oauth2.issuer` are both missing.
167167

168168

169-
#### Resource Server ID {#resource-server-id}
169+
## Resource Server ID {#resource-server-id}
170170

171171
A RabbitMQ cluster must have at least one resource server identifier configured. If it has just one resource, this is configured in the `auth_oauth2.resource_server_id` variable and it is **mandatory**.
172172
If the RabbitMQ cluster has more than one OAuth resource then they are configured under `auth_oauth2.resource_servers.<index>` and in this case `auth_oauth2.resource_server_id` variable is not mandatory.
@@ -175,7 +175,7 @@ RabbitMQ uess the resource server identity for these two purposes:
175175
- To validate the token's audience (`aud`) whose value must contain the resource server identifier. This validation can be disabled though.
176176
- To initiate the OAuth 2.0 Authorization Code flow in the Management UI. This is the flow used to authenticate a user and to get its access token. RabbitMQ must include the resource server identifier in the request's attribute called `resource`.
177177

178-
#### Scope prefix {#scope-prefix}
178+
## Scope Prefix {#scope-prefix}
179179

180180
OAuth 2.0 tokens use scopes to communicate what set of permissions particular client are granted. The scopes are free form strings.
181181

@@ -196,7 +196,7 @@ auth_oauth2.scope_prefix = ''
196196
...
197197
```
198198

199-
#### Scope Aliases {#scope-aliases}
199+
## Scope Aliases {#scope-aliases}
200200

201201
:::important
202202

@@ -245,7 +245,7 @@ auth_oauth2.scope_aliases.2.scope = rabbitmq.tag:management rabbitmq.read:*/* ra
245245
# ...
246246
```
247247

248-
#### Signing Keys Files {#signing-key-files}
248+
## Signing Keys Files {#signing-key-files}
249249

250250
The following configuration declares two signing keys and configures the kid of the default signing key. For more information check the section [Configure Signing keys](#configure-signing-keys).
251251

@@ -261,7 +261,7 @@ auth_oauth2.algorithms.1 = HS256
261261
auth_oauth2.algorithms.2 = RS256
262262
```
263263

264-
#### JWKS endpoint {#jwks-endpoint}
264+
## JWKS endpoint {#jwks-endpoint}
265265

266266
The following configuration sets the JWKS endpoint from which RabbitMQ downloads the signing keys using the configured CA certificate and TLS variables.
267267

@@ -278,7 +278,7 @@ auth_oauth2.algorithms.2 = RS256
278278
```
279279

280280

281-
#### Multiple Resource Servers configuration {#multiple-resource-servers-configuration}
281+
## Multiple Resource Servers Сonfiguration {#multiple-resource-servers-configuration}
282282

283283
Each `auth_oauth2.resource_servers.<id/index>.` entry has the following variables shown in the table below. Except for the variables `id` and `oauth_provider_id`, if a resource does not configure a variable, RabbitMQ uses the variable configured at the root level. For instance, if the resource `auth_oauth2.resource_servers.prod` does not configure `preferred_username_claims` variable, RabbitMQ uses the value configured in `auth_oauth2.preferred_username_claims` for the resource `prod`.
284284

@@ -307,7 +307,7 @@ auth_oauth2.resource_servers.2.id = dev
307307

308308
See the advanced usage section called [Multiple Resource Servers](#multiple-resource-servers) for more information on how to configure them.
309309

310-
#### Multiple OAuth Providers configuration {#multiple-oauth-providers-configuration}
310+
## Multiple OAuth Providers Сonfiguration {#multiple-oauth-providers-configuration}
311311

312312
Each `auth_oauth2.oauth_providers.{id/index}` entry has the following sub-keys.
313313

versioned_docs/version-3.13/oauth2.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ auth_backends.1 = rabbit_auth_backend_oauth2
7878

7979
Next, let's take a look at the workflows the OAuth 2 plugin supports.
8080

81-
### Prerequisites {#prerequisites}
81+
## Prerequisites {#prerequisites}
8282

8383
To use the OAuth 2 plugin, all RabbitMQ nodes must be
8484

@@ -109,7 +109,7 @@ Also, the `https://my-oauth2-provider.com/realm/rabbitmq/.well-known/openid-conf
109109

110110
More detail is included in the next section about what happens during the authentication and how to configure OAuth 2.0 beyond the basic configuration shown previously.
111111

112-
### Authorization Flow {#authorization-flow}
112+
## Authorization Flow {#authorization-flow}
113113

114114
This plugin does not communicate with any OAuth 2.0 provider in order to authenticate user and grants access. Instead, it decodes an access token provided by the client and authorises a user based on the scopes found in the token.
115115

@@ -131,7 +131,7 @@ In chronological order, here is the sequence of events that occur when a client
131131
5. RabbitMQ validates that the token has the **audience** claim and whose value matches the `resource_server_id` (this operation can be deactivated by setting `auth_oauth2.verify_aud` to `false`).
132132
6. RabbitMQ translates the **scopes** found in the token into RabbitMQ **permissions** (the same permissions used in the RabbitMQ's internal database).
133133

134-
### Variables configurable in rabbitmq.conf {#variables-configurable}
134+
## Variables Сonfigurable in rabbitmq.conf {#variables-configurable}
135135

136136
| Key | Documentation
137137
|--------------------------------------------|-----------
@@ -158,7 +158,7 @@ In chronological order, here is the sequence of events that occur when a client
158158
| `auth_oauth2.default_oauth_provider` | ID of the OAuth 2.0 provider used for the `auth_oauth2.resource_servers`, that did not specify any (via the variable `oauth_provider_id`) or when `auth_oauth2.jwks_url` and `auth_oauth2.issuer` are both missing.
159159

160160

161-
#### Resource Server ID {#resource-server-id}
161+
## Resource Server ID {#resource-server-id}
162162

163163
A RabbitMQ cluster must have at least one resource server identifier configured. If it has just one resource, this is configured in the `auth_oauth2.resource_server_id` variable and it is **mandatory**.
164164
If the RabbitMQ cluster has more than one OAuth resource then they are configured under `auth_oauth2.resource_servers.<index>` and in this case `auth_oauth2.resource_server_id` variable is not mandatory.
@@ -167,7 +167,7 @@ RabbitMQ uess the resource server identity for these two purposes:
167167
- To validate the token's audience (`aud`) whose value must contain the resource server identifier. This validation can be disabled though.
168168
- To initiate the OAuth 2.0 Authorization Code flow in the Management UI. This is the flow used to authenticate a user and to get its access token. RabbitMQ must include the resource server identifier in the request's attribute called `resource`.
169169

170-
#### Scope prefix {#scope-prefix}
170+
## Scope Prefix {#scope-prefix}
171171

172172
OAuth 2.0 tokens use scopes to communicate what set of permissions particular client are granted. The scopes are free form strings.
173173

@@ -181,7 +181,7 @@ auth_oauth2.scope_prefix = api://
181181
...
182182
```
183183

184-
#### Signing keys files {#signing-key-files}
184+
## Signing keys files {#signing-key-files}
185185

186186
The following configuration declares two signing keys and configures the kid of the default signing key. For more information check the section [Configure Signing keys](#configure-signing-keys).
187187

@@ -197,7 +197,7 @@ auth_oauth2.algorithms.1 = HS256
197197
auth_oauth2.algorithms.2 = RS256
198198
```
199199

200-
#### JWKS endpoint {#jwks-endpoint}
200+
## JWKS endpoint {#jwks-endpoint}
201201

202202
The followibng configuration sets the JWKS endpoint from which RabbitMQ downloads the signing keys using the configured CA certificate and TLS variables.
203203

@@ -213,7 +213,7 @@ auth_oauth2.algorithms.1 = HS256
213213
auth_oauth2.algorithms.2 = RS256
214214
```
215215

216-
#### Multiple Resource Servers configuration {#multiple-resource-servers-configuration}
216+
## Multiple Resource Servers configuration {#multiple-resource-servers-configuration}
217217

218218
Each `auth_oauth2.resource_servers.<id/index>.` entry has the following variables shown in the table below. Except for the variables `id` and `oauth_provider_id`, if a resource does not configure a variable, RabbitMQ uses the variable configured at the root level. For instance, if the resource `auth_oauth2.resource_servers.prod` does not configure `preferred_username_claims` variable, RabbitMQ uses the value configured in `auth_oauth2.preferred_username_claims` for the resource `prod`.
219219

@@ -239,7 +239,7 @@ auth_oauth2.resource_servers.2.id = dev
239239

240240
See the advanced usage section called [Multiple Resource Servers](#multiple-resource-servers) for more information on how to configure them.
241241

242-
#### Multiple OAuth Providers configuration {#multiple-oauth-providers-configuration}
242+
## Multiple OAuth Providers Configuration {#multiple-oauth-providers-configuration}
243243

244244
Each `auth_oauth2.oauth_providers.<id/index>.` entry has the following variables.
245245

versioned_docs/version-4.0/oauth2.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ auth_backends.1 = rabbit_auth_backend_oauth2
7878

7979
Next, let's take a look at the workflows the OAuth 2 plugin supports.
8080

81-
### Prerequisites {#prerequisites}
81+
## Prerequisites {#prerequisites}
8282

8383
To use the OAuth 2 plugin, all RabbitMQ nodes must be
8484

@@ -109,7 +109,7 @@ Also, the `https://my-oauth2-provider.com/realm/rabbitmq/.well-known/openid-conf
109109

110110
More detail is included in the next section about what happens during the authentication and how to configure OAuth 2.0 beyond the basic configuration shown previously.
111111

112-
### Authorization Flow {#authorization-flow}
112+
## Authorization Flow {#authorization-flow}
113113

114114
This plugin does not communicate with any OAuth 2.0 provider in order to authenticate user and grants access. Instead, it decodes an access token provided by the client and authorises a user based on the scopes found in the token.
115115

@@ -131,7 +131,7 @@ In chronological order, here is the sequence of events that occur when a client
131131
5. RabbitMQ validates that the token has the **audience** claim and whose value matches the `resource_server_id` (this operation can be deactivated by setting `auth_oauth2.verify_aud` to `false`).
132132
6. RabbitMQ translates the **scopes** found in the token into RabbitMQ **permissions** (the same permissions used in the RabbitMQ's internal database).
133133

134-
### Variables configurable in rabbitmq.conf {#variables-configurable}
134+
## Variables Сonfigurable in rabbitmq.conf {#variables-configurable}
135135

136136
| Key | Documentation
137137
|--------------------------------------------|-----------
@@ -159,7 +159,7 @@ In chronological order, here is the sequence of events that occur when a client
159159

160160

161161

162-
#### Resource Server ID {#resource-server-id}
162+
## Resource Server ID {#resource-server-id}
163163

164164
A RabbitMQ cluster must have at least one resource server identifier configured. If it has just one resource, this is configured in the `auth_oauth2.resource_server_id` variable and it is **mandatory**.
165165
If the RabbitMQ cluster has more than one OAuth resource then they are configured under `auth_oauth2.resource_servers.<index>` and in this case `auth_oauth2.resource_server_id` variable is not mandatory.
@@ -168,7 +168,7 @@ RabbitMQ uess the resource server identity for these two purposes:
168168
- To validate the token's audience (`aud`) whose value must contain the resource server identifier. This validation can be disabled though.
169169
- To initiate the OAuth 2.0 Authorization Code flow in the Management UI. This is the flow used to authenticate a user and to get its access token. RabbitMQ must include the resource server identifier in the request's attribute called `resource`.
170170

171-
#### Scope prefix {#scope-prefix}
171+
## Scope Prefix {#scope-prefix}
172172

173173
OAuth 2.0 tokens use scopes to communicate what set of permissions particular client are granted. The scopes are free form strings.
174174

@@ -189,7 +189,7 @@ auth_oauth2.scope_prefix = ''
189189
...
190190
```
191191

192-
#### Signing keys files {#signing-key-files}
192+
## Signing keys files {#signing-key-files}
193193

194194
The following configuration declares two signing keys and configures the kid of the default signing key. For more information check the section [Configure Signing keys](#configure-signing-keys).
195195

@@ -205,7 +205,7 @@ auth_oauth2.algorithms.1 = HS256
205205
auth_oauth2.algorithms.2 = RS256
206206
```
207207

208-
#### JWKS endpoint {#jwks-endpoint}
208+
## JWKS endpoint {#jwks-endpoint}
209209

210210
The followibng configuration sets the JWKS endpoint from which RabbitMQ downloads the signing keys using the configured CA certificate and TLS variables.
211211

@@ -221,7 +221,7 @@ auth_oauth2.algorithms.1 = HS256
221221
auth_oauth2.algorithms.2 = RS256
222222
```
223223

224-
#### Multiple Resource Servers configuration {#multiple-resource-servers-configuration}
224+
## Multiple Resource Servers configuration {#multiple-resource-servers-configuration}
225225

226226
Each `auth_oauth2.resource_servers.<id/index>.` entry has the following variables shown in the table below. Except for the variables `id` and `oauth_provider_id`, if a resource does not configure a variable, RabbitMQ uses the variable configured at the root level. For instance, if the resource `auth_oauth2.resource_servers.prod` does not configure `preferred_username_claims` variable, RabbitMQ uses the value configured in `auth_oauth2.preferred_username_claims` for the resource `prod`.
227227

0 commit comments

Comments
 (0)