I’m not even sure if you could do this, but if you could, it’s not necessarily advisable.
- Your install will never be supportable by our community as it would be too custom.
- You’d need to be responsible for merging in any changes to Discourse. At the rate we commit to the repo, this might mean a ton of work for you depending on what you change.
You can kind of do this with SSO already. That is a more recommended approach for this kind of thing.