Forbidden error on embed widget

What I’m trying to do is use Discourse as a forum, essentially creating a chat within our logged-in system. We already have an account for the user who sees Discourse on the frontend. How can I log in this user without displaying the Discourse login page? Are there any possibilities?

I’m also attempting to create a proof of concept (POC) using a Discourse hosted service with a free trial. However, the ultimate goal is to self-host Discourse on our domain, utilizing a subdomain for Discourse and another subdomain for the mentioned application.