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: docs/oauth2-examples-okta.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,11 +186,14 @@ This is totally optional but it can save you time.
186
186
187
187
## Configure RabbitMQ to use Okta as OAuth 2.0 Authentication Backend
188
188
189
-
The configuration on Okta side is done. You now have to configure RabbitMQ to use the resources you just created. You took note of the following values:
189
+
The configuration on the Okta side is now done. The next step is to configure RabbitMQ
190
+
to use the resources created earlier.
190
191
191
-
-**okta_client_app_ID** associated to the okta app that you registered in okta for rabbitMQ.
192
-
-**okta-Issuer** associated to the **default Authorization server**.
193
-
-**okta-Metadata-URI** associated to the **default Authorization server**.
192
+
The following values will be necessary during the next steps:
193
+
194
+
***okta_client_app_ID**: the Okta app registered above to be used with RabbitMQ
195
+
***okta-Issuer**: the **default Authorization server**
196
+
***okta-Metadata-URI**: the **default Authorization server**
194
197
195
198
Clone [rabbitmq.conf.tmpl](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/next/conf/okta/rabbitmq.conf.tmpl) as `rabbitmq.conf` (in the same folder as `rabbitmq.conf.tmpl`).
196
199
There is a second configuration file, [advanced.config](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/next/conf/okta/advanced.config),
@@ -205,6 +208,15 @@ or `{okta-issuer}/.well-known/openid-configuration`
205
208
4. Else you need to determine the path that follows the uri in `{okta-issuer}` and update
206
209
`auth_oauth2.discovery_endpoint_path` accordingly. For instance, if **okta-Metadata-URI** is `{okta-issuer}/some-other-endpoint`, you update `auth_oauth2.discovery_endpoint_path` with the value `some-other-endpoint`.
207
210
211
+
The mapping of the roles configured in Okta, such as `monitoring` and `admin`, are configured
212
+
at the bottom of the `rabbitmq.conf` file. For example:
This is the configuration required to map those custom scopes to RabbitMQ scopes.
589
551
552
+
:::tip
553
+
Since RabbitMQ 4.1, it is possible to configure **scope aliases** using the [ini-like](./configure#config-file) configuration style. Earlier versions only supported
554
+
the legacy Erlang-style.
555
+
:::
590
556
591
557
```ini
592
-
# ...
593
-
auth_oauth2.resource_server_id=rabbitmq
594
-
auth_oauth2.additional_scopes_key=roles
595
-
# ...
596
-
```
597
-
598
-
Withthisconfiguration, RabbitMQexpects*customscopes*inthefield `roles` and
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).
@@ -241,6 +277,7 @@ Each `auth_oauth2.resource_servers.<id/index>.` entry has the following variable
241
277
| `resource_server_type` | The Resource Server Type required when using [Rich Authorization Request](#rich-authorization-request) token format.
242
278
| `additional_scopes_key` | Configure the plugin to look for scopes in other fields (maps to `additional_rabbitmq_scopes` in the old format).
243
279
| `scope_prefix` | [Configure the prefix for all scopes](#scope-prefix). The default value is `auth_oauth2.resource_server_id` followed by the dot `.` character.
| `preferred_username_claims` | [List of the JWT claims](#preferred-username-claims) to look for the username associated with the token separated by commas.
245
282
| `oauth_provider_id` | The identifier of the OAuth Provider associated to this resource. RabbitMQ uses the signing keys issued by this OAuth Provider to validate tokens whose audience matches this resource's id.
Copy file name to clipboardExpand all lines: versioned_docs/version-3.13/oauth2-examples-okta.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,14 +150,15 @@ Once you've added the user to the appropriate groups and apps, they should have
150
150
151
151
## Configure RabbitMQ to use Okta as OAuth 2.0 Authentication Backend
152
152
153
-
The configuration on Okta side is done. You now have to configure RabbitMQ to use the resources you just created.
153
+
The configuration on the Okta side is now done. The next step is to configure RabbitMQ
154
+
to use the resources created earlier.
154
155
155
156
[rabbitmq.conf](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/main/conf/okta/rabbitmq.conf) is a RabbitMQ configuration to **enable okta as OAuth 2.0 authentication backend** for the RabbitMQ OAuth2 and Management plugins. And [advanced.config](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/main/conf/okta/advanced.config) is the RabbitMQ advanced configuration that maps RabbitMQ scopes to the permissions previously configured in Okta.
156
157
157
-
Update it with the following values (you should have noted these in the previous steps):
158
+
Update it with the following values from the earlier steps:
158
159
159
-
-**okta-domain-name** associated to your okta domain name.
160
-
-**okta_client_app_ID** associated to the okta app that you registered in okta for rabbitMQ.
160
+
***okta-domain-name**: the Okta domain name
161
+
***okta_client_app_ID**: the Okta app registered above to be used with RabbitMQ
Copy file name to clipboardExpand all lines: versioned_docs/version-4.0/oauth2-examples-okta.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,14 +150,15 @@ Once you've added the user to the appropriate groups and apps, they should have
150
150
151
151
## Configure RabbitMQ to use Okta as OAuth 2.0 Authentication Backend
152
152
153
-
The configuration on Okta side is done. You now have to configure RabbitMQ to use the resources you just created.
153
+
The configuration on the Okta side is now done. The next step is to configure RabbitMQ
154
+
to use the resources created earlier.
154
155
155
156
[rabbitmq.conf](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/main/conf/okta/rabbitmq.conf) is a RabbitMQ configuration to **enable okta as OAuth 2.0 authentication backend** for the RabbitMQ OAuth2 and Management plugins. And [advanced.config](https://github.com/rabbitmq/rabbitmq-oauth2-tutorial/tree/main/conf/okta/advanced.config) is the RabbitMQ advanced configuration that maps RabbitMQ scopes to the permissions previously configured in Okta.
156
157
157
-
Update it with the following values (you should have noted these in the previous steps):
158
+
Update it with the following values from the earlier steps:
158
159
159
-
-**okta-domain-name** associated to your okta domain name.
160
-
-**okta_client_app_ID** associated to the okta app that you registered in okta for rabbitMQ.
160
+
***okta-domain-name**: the Okta domain name
161
+
***okta_client_app_ID**: the Okta app registered above to be used with RabbitMQ
0 commit comments