I know this has been asked a lot, but I can’t wrap my head around it.
I’m implementing this Interface; https://docs.spring.io/spring-security/oauth/apidocs/org/springframework/security/oauth2/provider/ClientDetails.html
when I implement it like this :
private var clientId = "" override fun getClientId() = clientId
… then the interface is satisfied but I can’t do
client.clientId = clientId // Err: Val cannot be reassigned
I tried the various options along but am getting syntax errors along the way.
What the way to do this? I want to create a
ClientDetail in a Service.