Extension node with Credentials - need code example

That is what I am using, but the credentials provider in the dialog component is always null and therefore the ‘credentials’ option is disabled. The workflow does have credentials.
I thought I am missing some config option or setting and that’s why I wanted to look at a working code example.