Add Gitea OAuth2 Support
Support Gitea's OAuth2 provider as an authentication source.
Currently, the team edition only supports GitLab as an OAuth2 source. GitLab is pretty heavyweight and many people prefer other software for a variety of reasons.
Gitea (https://gitea.io/en-us/) is a really nice open source, community supported Git server. They recently added support for acting as an OAuth2 provider (see https://docs.gitea.io/en-us/oauth2-provider/ for documentation). It would be great if Mattermost would support Gitea as an OAuth2 provider.
-
Evan Hosinski commented
Has there been any movement on this?
-
Thomas Hussain commented
For me it worked with updating my nginx configuration with those settings:
server {
...
location / {
...
proxy_redirect off;
...
}location /oauth/authorize {
proxy_pass http://127.0.0.1:3000/login/oauth/authorize;
}location /oauth/token {
proxy_pass http://127.0.0.1:3000/login/oauth/access_token;
}location /api/v4 {
proxy_pass http://127.0.0.1:3000/api/v1;
}...
} -
Fred Hermann commented
I agree.
I'm currently looking for deploying a self-hosted git service, but my dev team definitively want also mattermost integration, so that would lead me to choose gitlab, whereas I would go with gitea if I could. -
Ari Gami commented
Is this idea going anywhere? It would be awesome. Gitea and Mattermost are both selfhosted, so I would assume more people would like this than just me.
-
Omar Saleh Assadi commented
Would be dope to have.
-
Lafriks commented
Link to issue in github: https://github.com/mattermost/mattermost-server/issues/10923