Configuration: Add ability to customize okta login button name and icon (#44079)

* add ability to customize okta login button name and icon

* update configs, add basic frontend test

* add icon to oauth settings type

* trigger tests

* fix typecheck
This commit is contained in:
Dan Cech
2022-02-16 11:35:00 -05:00
committed by GitHub
parent 2b9e46d1f8
commit 51cd6f3cc5
8 changed files with 36 additions and 7 deletions
+4 -1
View File
@@ -92,7 +92,10 @@ func (hs *HTTPServer) LoginView(c *models.ReqContext) {
enabledOAuths := make(map[string]interface{})
providers := hs.SocialService.GetOAuthInfoProviders()
for key, oauth := range providers {
enabledOAuths[key] = map[string]string{"name": oauth.Name}
enabledOAuths[key] = map[string]string{
"name": oauth.Name,
"icon": oauth.Icon,
}
}
viewData.Settings["oauth"] = enabledOAuths