Group Invites and SSO

I’m using Umbraco, and to enable users from our website to log in to Discourse, we’ve implemented a custom solution using DiscourseConnect.

We’d like Discourse admins to be able to invite users to join a private group using a shareable invite link. This link should work seamlessly with our Single Sign-On (SSO) implementation via Umbraco, supporting both new users who need to create an account and existing users who need to log in.

Upon successful signup or login via SSO, users should be automatically added to the specified group associated with the invite.

Is this possible to implement with the current DiscourseConnect flow, or would it require custom development or a plugin?

Thanks.