Skip to content

Commit eda4b30

Browse files
Fix two more code blocks
1 parent 221e659 commit eda4b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/oauth2-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,13 @@ Most authorization servers return the user's GUID in the `sub` claim rather than
663663

664664
Given this configuration:
665665

666-
```
666+
<pre class="lang-erlang">
667667
...
668668
{rabbitmq_auth_backend_oauth2, [
669669
{resource_server_id, <<"rabbitmq">>},
670670
{preferred_username_claims, [<<"user_name">>,<<"email">>]},
671671
...
672-
```
672+
</pre>
673673

674674
RabbitMQ would first look for the `user_name` claim and if it is not found it looks for `email`. Else it uses its default lookup mechanism which first looks for `sub` and then `client_id`.
675675

0 commit comments

Comments
 (0)