Web style login for OIDC/OAuth2 services

Is it possible to, during device add, pop up a web browser to do an OIDC sign in and extract the generated JWT from the cookies/response headers? I did not find an obvious way to do it and I want to know if it is feasible before spending more time on it. The idea is to build an integration to a service that does not really play nice with plain username/password

Have you look at the default module Athom provided fot OAuth2?

Should be customizable in many ways.

Thanks, I got fooled by the screenshots and quickly discarded it as doing the other way around, but that looks like it could be the way to go. I need to investigate if it can solve the task at hand, but thanks for the pointer.