I want to dynamically change scope for client registrations. I know how to set up registrations this way:
spring:
security:
oauth2:
client:
registration:
custom:
client-id: clientId
client-secret: clientSecret
authorization-grant-type: client_credentials
provider:
custom:
token-uri: http://localhost:8081/oauth/token
How can I configure this programatically?