filters external login providers in the back office to only show the ones configured for umbraco back office

This commit is contained in:
Shannon
2015-03-25 15:35:03 +11:00
parent 880c9cf679
commit abf70cd302
2 changed files with 2 additions and 1 deletions

View File

@@ -58,11 +58,11 @@
@{
var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes()
.Where(p => p.Properties.ContainsKey("UmbracoBackOffice"))
.Select(p => new
{
authType = p.AuthenticationType,
caption = p.Caption,
//TODO: Need to see if this exposes any sensitive data!
properties = p.Properties
})
.ToArray();

View File

@@ -395,6 +395,7 @@ namespace Umbraco.Web.Editors
{
{
"providers", HttpContext.GetOwinContext().Authentication.GetExternalAuthenticationTypes()
.Where(p => p.Properties.ContainsKey("UmbracoBackOffice"))
.Select(p => new
{
authType = p.AuthenticationType, caption = p.Caption,