Expected Behavior
Preamble: I don't know the correct way to voice this issue, so if it's not the correct way, please tell me how to do it right.
While copying code from the OAuth 2.0 Resource Server Multi-tenancy section
I noticed some inconsistencies. I expect the documentation to be usable code.
Current Behavior
2 code snippets contain bad code.
I tried creating a PR, but was not able to.
Here is the diff with the fixes:

2 parameters are provided, but not used. At the same time 2 fields are used, which are not described and resemble those parameters.
I assume that this is a mix-up.

A non-existing class name is used.
Expected Behavior
Preamble: I don't know the correct way to voice this issue, so if it's not the correct way, please tell me how to do it right.
While copying code from the OAuth 2.0 Resource Server Multi-tenancy section
I noticed some inconsistencies. I expect the documentation to be usable code.
Current Behavior
2 code snippets contain bad code.
I tried creating a PR, but was not able to.
Here is the diff with the fixes:

2 parameters are provided, but not used. At the same time 2 fields are used, which are not described and resemble those parameters.
I assume that this is a mix-up.
A non-existing class name is used.