@@ -23,11 +23,11 @@ type OAuth2Provider struct {
23
23
// key is used to map the OAuth2Provider with the goth provider type (also in LoginSource.OAuth2Config.Provider)
24
24
// value is used to store display data
25
25
var OAuth2Providers = map [string ]OAuth2Provider {
26
- "bitbucket" : {Name : "bitbucket" , DisplayName : "Bitbucket" , Image : "/img/auth/bitbucket.png" },
27
- "dropbox" : {Name : "dropbox" , DisplayName : "Dropbox" , Image : "/img/auth/dropbox.png" },
28
- "facebook" : {Name : "facebook" , DisplayName : "Facebook" , Image : "/img/auth/facebook.png" },
26
+ "bitbucket" : {Name : "bitbucket" , DisplayName : "Bitbucket" , Image : "/assets/ img/auth/bitbucket.png" },
27
+ "dropbox" : {Name : "dropbox" , DisplayName : "Dropbox" , Image : "/assets/ img/auth/dropbox.png" },
28
+ "facebook" : {Name : "facebook" , DisplayName : "Facebook" , Image : "/assets/ img/auth/facebook.png" },
29
29
"github" : {
30
- Name : "github" , DisplayName : "GitHub" , Image : "/img/auth/github.png" ,
30
+ Name : "github" , DisplayName : "GitHub" , Image : "/assets/ img/auth/github.png" ,
31
31
CustomURLMapping : & oauth2.CustomURLMapping {
32
32
TokenURL : oauth2 .GetDefaultTokenURL ("github" ),
33
33
AuthURL : oauth2 .GetDefaultAuthURL ("github" ),
@@ -36,36 +36,36 @@ var OAuth2Providers = map[string]OAuth2Provider{
36
36
},
37
37
},
38
38
"gitlab" : {
39
- Name : "gitlab" , DisplayName : "GitLab" , Image : "/img/auth/gitlab.png" ,
39
+ Name : "gitlab" , DisplayName : "GitLab" , Image : "/assets/ img/auth/gitlab.png" ,
40
40
CustomURLMapping : & oauth2.CustomURLMapping {
41
41
TokenURL : oauth2 .GetDefaultTokenURL ("gitlab" ),
42
42
AuthURL : oauth2 .GetDefaultAuthURL ("gitlab" ),
43
43
ProfileURL : oauth2 .GetDefaultProfileURL ("gitlab" ),
44
44
},
45
45
},
46
- "gplus" : {Name : "gplus" , DisplayName : "Google" , Image : "/img/auth/google.png" },
47
- "openidConnect" : {Name : "openidConnect" , DisplayName : "OpenID Connect" , Image : "/img/auth/openid_connect.svg" },
48
- "twitter" : {Name : "twitter" , DisplayName : "Twitter" , Image : "/img/auth/twitter.png" },
49
- "discord" : {Name : "discord" , DisplayName : "Discord" , Image : "/img/auth/discord.png" },
46
+ "gplus" : {Name : "gplus" , DisplayName : "Google" , Image : "/assets/ img/auth/google.png" },
47
+ "openidConnect" : {Name : "openidConnect" , DisplayName : "OpenID Connect" , Image : "/assets/ img/auth/openid_connect.svg" },
48
+ "twitter" : {Name : "twitter" , DisplayName : "Twitter" , Image : "/assets/ img/auth/twitter.png" },
49
+ "discord" : {Name : "discord" , DisplayName : "Discord" , Image : "/assets/ img/auth/discord.png" },
50
50
"gitea" : {
51
- Name : "gitea" , DisplayName : "Gitea" , Image : "/img/auth/gitea.png" ,
51
+ Name : "gitea" , DisplayName : "Gitea" , Image : "/assets/ img/auth/gitea.png" ,
52
52
CustomURLMapping : & oauth2.CustomURLMapping {
53
53
TokenURL : oauth2 .GetDefaultTokenURL ("gitea" ),
54
54
AuthURL : oauth2 .GetDefaultAuthURL ("gitea" ),
55
55
ProfileURL : oauth2 .GetDefaultProfileURL ("gitea" ),
56
56
},
57
57
},
58
58
"nextcloud" : {
59
- Name : "nextcloud" , DisplayName : "Nextcloud" , Image : "/img/auth/nextcloud.png" ,
59
+ Name : "nextcloud" , DisplayName : "Nextcloud" , Image : "/assets/ img/auth/nextcloud.png" ,
60
60
CustomURLMapping : & oauth2.CustomURLMapping {
61
61
TokenURL : oauth2 .GetDefaultTokenURL ("nextcloud" ),
62
62
AuthURL : oauth2 .GetDefaultAuthURL ("nextcloud" ),
63
63
ProfileURL : oauth2 .GetDefaultProfileURL ("nextcloud" ),
64
64
},
65
65
},
66
- "yandex" : {Name : "yandex" , DisplayName : "Yandex" , Image : "/img/auth/yandex.png" },
66
+ "yandex" : {Name : "yandex" , DisplayName : "Yandex" , Image : "/assets/ img/auth/yandex.png" },
67
67
"mastodon" : {
68
- Name : "mastodon" , DisplayName : "Mastodon" , Image : "/img/auth/mastodon.png" ,
68
+ Name : "mastodon" , DisplayName : "Mastodon" , Image : "/assets/ img/auth/mastodon.png" ,
69
69
CustomURLMapping : & oauth2.CustomURLMapping {
70
70
AuthURL : oauth2 .GetDefaultAuthURL ("mastodon" ),
71
71
},
0 commit comments