diff options
author | techknowlogick <hello@techknowlogick.com> | 2019-01-13 14:06:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-13 14:06:22 -0500 |
commit | 5c44f751a30517914ad232607a1202111cf4f0fa (patch) | |
tree | 5c2efcfa35e80d092bfd246f1c3a966792f9bb5f /models/oauth2.go | |
parent | beab2df1227f9b7e556aa5716d94feb3a3e2088e (diff) | |
download | gitea-5c44f751a30517914ad232607a1202111cf4f0fa.tar.gz gitea-5c44f751a30517914ad232607a1202111cf4f0fa.zip |
Discord Oauth2 support (#4476)
* add discord auth
* add vendor for discord
* fix syntax error
* make fmt
* update version of goth in use
* update markbates/goth
Diffstat (limited to 'models/oauth2.go')
-rw-r--r-- | models/oauth2.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/oauth2.go b/models/oauth2.go index 0640471a48..10bce31924 100644 --- a/models/oauth2.go +++ b/models/oauth2.go @@ -43,6 +43,7 @@ var OAuth2Providers = map[string]OAuth2Provider{ "gplus": {Name: "gplus", DisplayName: "Google+", Image: "/img/auth/google_plus.png"}, "openidConnect": {Name: "openidConnect", DisplayName: "OpenID Connect", Image: "/img/auth/openid_connect.png"}, "twitter": {Name: "twitter", DisplayName: "Twitter", Image: "/img/auth/twitter.png"}, + "discord": {Name: "discord", DisplayName: "Discord", Image: "/img/auth/discord.png"}, } // OAuth2DefaultCustomURLMappings contains the map of default URL's for OAuth2 providers that are allowed to have custom urls |