re #12067 - discourse - Add SSO support to discourse and main app

Tidy the way customisations are defined in SessionController