Could you give me a bit of insight as to why you're attempting to completely avoid redirection in this case? Are you concerned about potential user churn/drop off during the flow? @Antoni
@peintnermax maybe has some more input here As I see it, this is the exact same flow we use in our typescript login to register under https://github.com/zitadel/typescript/tree/main/apps/login#register. The result is that you have a freshly created user, which is already authenticated and you can use the OIDC token for further calls. Do I correctly understand the need here?
The thing with the oidc flow is, that per definition the standard is always with a redirect. Only option for you at the moment is to use the session api and therefore a session token. which we know is not a oidc token, as it is not created through the standards flow.
There is an open issues to implement a token exchange so you can exchange a session token for a oidc token. unfortunately this is not yet implemented: https://github.com/zitadel/zitadel/issues/7900
We should allow Session Tokens to be exchanged for OAuth / OIDC tokens on the Token Exchange. This would give developers the opportunity to get an access_token from a session token, without the nee...