that’s what I ended with: ``` data class OAuth2...
# spring
d
that’s what I ended with:
Copy code
data class OAuth2Service(
        var name: String = "",
        val client: OAuth2ProtectedResourceDetails = AuthorizationCodeResourceDetails(),
        val resource: ResourceServerProperties = ResourceServerProperties()
    )

    data class OAuth2ServicesCollection(val services: List<OAuth2Service>)

    @Bean
    @ConfigurationProperties(prefix = "oauth2")
    open fun oauth2() = OAuth2ServicesCollection(mutableListOf<OAuth2Service>())