Extending header buttons

You really need to use SSO. Discourse will automatically adapt to your sso provider once it is configured correctly.