You can't hide it, but you can preset values. They will be set on UI and "hidden"
springdoc.swagger-ui.oauth.client-id=${keycloak.resource} springdoc.swagger-ui.oauth.client-secret=${keycloak.credentials.secret}