﻿@inject Microsoft.AspNetCore.Identity.SignInManager<LondonTravelUser> SignInManager
@{
    var providers = SignInManager.GetExternalAuthenticationSchemes()
        .OrderBy((p) => p.DisplayName)
        .ThenBy((p) => p.AuthenticationScheme)
        .ToList();

    var schemesToShow = ViewData["AuthenticationSchemesToShow"] as IEnumerable<string>;

    if (schemesToShow != null)
    {
        providers = providers
            .Where((p) => schemesToShow.Contains(p.AuthenticationScheme, StringComparer.OrdinalIgnoreCase))
            .ToList();
    }
}
<form asp-route="@SiteRoutes.ExternalSignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
    <div>
        <p>
            @foreach (var provider in providers)
            {
                @await Html.PartialAsync("_SocialButton", provider)
            }
        </p>
    </div>
</form>

﻿@inject Microsoft.AspNetCore.Identity.SignInManager<LondonTravelUser> SignInManager
@{
    var providers = SignInManager.GetExternalAuthenticationSchemes()
        .OrderBy((p) => p.DisplayName)
        .ThenBy((p) => p.AuthenticationScheme)
        .ToList();

    /*
    var schemesToShow = ViewData["AuthenticationSchemesToShow"] as IEnumerable<string>;

    if (schemesToShow != null)
    {
        providers = providers
            .Where((p) => schemesToShow.Contains(p.AuthenticationScheme, StringComparer.OrdinalIgnoreCase))
            .ToList();
    }
    */
}
<form asp-route="@SiteRoutes.ExternalSignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
    <div>
        <p>
            @foreach (var provider in providers)
            {
                @await Html.PartialAsync("_SocialButton", provider)
            }
        </p>
    </div>
</form>

Disable provider filtering for Alexa
Disable provider filtering for Alexa

Disable filtering of external authentication schemes to investigate #36.
