mattermail icon indicating copy to clipboard operation
mattermail copied to clipboard

Create a way to post in teams with OAuth/Ldap

Open rodcorsi opened this issue 7 years ago • 2 comments

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

rodcorsi avatar Oct 18 '17 11:10 rodcorsi

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

rodcorsi avatar Oct 18 '17 12:10 rodcorsi

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? image

m49808 avatar Dec 15 '17 14:12 m49808