Support for [RFC-9728](https://datatracker.ietf.org/doc/html/rfc9728) was added with #17244 in spring security 7.0. The kotlin DSL needs to be updated to support the new configuration. The DSL should support this: ``` http { oauth2ResourceServer { protectedResourceMetadata { // ... } } } ``` [OAuth2ResourceServerDsl](https://github.com/spring-projects/spring-security/blob/60e7733d8a82983e817e6be3aabfc293a4c7078f/config/src/main/kotlin/org/springframework/security/config/annotation/web/OAuth2ResourceServerDsl.kt)
Support for RFC-9728 was added with #17244 in spring security 7.0. The kotlin DSL needs to be updated to support the new configuration.
The DSL should support this:
OAuth2ResourceServerDsl