I’m not sure if but I think that the related js is here?
I have access to the admin panel of the forum, I can drill down on ‘Components’ but I don’t see an entry for these buttons. I did see some used “test” components, I tried enabling one of these and copying the contents of auth-buttons.gjs file into the common head section but when I try to save I got errors.
So my question being - how can I extend and customise the functionality of these buttons.
We are already using SSO - the forum authenticates users via the same provider as our main site. However when a user register for an account at the forum we simply want to direct them to the main site - what is the best way of doing this?
Are you totally sure you really want to do that? From users’ point of view someone is trying to screw them. They were interested in a forum and after registration they’ll find themselves somewhere else.
Disable all other methods of authentication (including local logins) only let sso remain as the option to log in. That would automatically send users to log in to your main site.
No, Those parameters are supplied by your SSO provider. Discourse will only show “log in” button in header and send the user to your authentication endpoint provided by SSO provider.
Big if… I’ve seen similar solutions too often. Main purposes is then transfer an user permanently back to main site where selling happends. But totally nice if the purpose is similar than what i.e. Google does, where is taken short sidestep to authorize and then will come back to forum.
There won’t be a signup button once SSO is configured correctly. Then you can use the component that @Don linked above to add a custom create account button.