Problem registering thirdparty repos like postgresql or epel8 on RHEL8 subscribed to Foreman 1.23 and 1.24

Only RHEL repositorys are shown
Expected outcome:
subscription-manager repos --list
should show all repositorys including thirdparty

Foreman and Proxy versions:

1.23 and 1.24

Distribution and version:

Foreman installed on RHEL7

Other relevant data:

Subscribing RHEL7 to Foreman works on both versions 1.23 and 1.24 the problem is only RHEL8.
Does anyone faced the same problem?

solved my problem with this patch: