Ok, I got it. Maybe not the best solution but because the plugin is using the JWT data if the userinfo endpoint isn’t available, I forked the plugin on github and set in:
discourse-openid-connect/lib/omniauth_open_id_connect.rb
line 18 - option :use_userinfo, to false instead of true.
That’s it.
It would be nice to have an option in the settings of the plugin to choose between userinfo or JWT response.