mattermail
mattermail copied to clipboard
Create a way to post in teams with OAuth/Ldap
Today there is no way to post in teams with ldap or oAuth. One alternative is using webhook, but this is very limited because of filter rules and redirect by the subject. Other way is create login alternatives by ldap and oAuth
Mattermost client: Client V3 LoginByLdap(ldapID, pass) https://github.com/mattermost/mattermost-server/blob/master/model/client.go#L652
RegisterApp(app *OAuthApp) https://github.com/mattermost/mattermost-server/blob/master/model/client.go#L1869
Client V4 LoginByLdap(loginId string, password string) https://github.com/mattermost/mattermost-server/blob/master/model/client4.go#L444
CreateOAuthApp(app *OAuthApp) https://github.com/mattermost/mattermost-server/blob/master/model/client4.go#L2639
We use 100% SAML login, and have a similar problem. In mattermail i cant auth with a SAML user, which means i need to create a local user as well as update my server config to allow login via email. This creates confusion for end users as the login page suddenly looks like this, with the email login above the SAML login. The email login does not work (no email users other than mattermail) so you can guess that there are a lot of complaints about logins. Is there any way to switch from email auth to using a personal access token instead?