Discourse Connect Flow

I have a similar flow issue, I don’t want my user to access the Discourse and click on login, I need my user to access my platform and click on the Access Discourse button and access the Discourse transparently.

Is it possible for my platform to generate a ‘nonce’ for my user using api in a safe way, without them having to access the Discourse before and click on login?

Note: I can do this myself by accessing the Discourse and clicking the button for them, without them knowing, but this is not safe for the application.