How To: Build Integration that needs OpenID Connect Flow via Browser

Hi community, I need an advice. I would like to build a custom integration. The service providers API is closed source. So I needed to reverse it. My current problem is that the authentication flow is based on OpenID Connect and is made for browser based logins (within the flow there are forms loaded with hidden fields with e.g. XSRF tokens, partially auto submitting partially waiting for user input). No REST available. Also custom headers are needed. I could either realize this flow with wild scripting and pre configured credentials. But I don’t like this idea although it already works. I would rather like to let the user do the credential input via the UI based flow. But I am not sure if this can be handled with HAs async_external_step or similar (custom headers, further posting after the browser flow is done, …). Does anybody know an integration that solved the same issue? Any other design advice here? Thanks!