In our case, the goal is to keep identity management very separate everywhere except discourse.
Our two user groups are just very different. The first group, identified authoritatively in our admin system, comprises employees and in-person students. This group will always be relatively small (hundreds), and all of the other service integrations we offer are available only to them. The second group lives entirely in Moodle. They’re relatively anonymous (enrolled in our open online courses), and they number in the tens of thousands. We’ve talked about implementing a unified LDAP or something similar, but keeping the mass of semi-anonymous accounts sequestered in Moodle actually works out pretty nicely for all other purposes.
Hearing both of you, I understand that the correct answer here is to just route everything through Moodle. From a user perspective, that’s not ideal, since it makes SSO require a second sign-in for some. But, especially if discourse can’t present under two distinct subdomains, I see why that’s the necessary approach.
In any case, thanks to both of you for the assistance! I’ll report back with whatever I figure out.