We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the shortcut code for displaying only 1 external IdP, the DisplayName property is not set.
DisplayName
if (!local) { View.ExternalProviders = new[] { new ViewModel.ExternalProvider ( authenticationScheme: context.IdP ) }; }
https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/Index.cshtml.cs#L172
It is therefore not included in VisibleExternalProviders.
VisibleExternalProviders
public IEnumerable<ViewModel.ExternalProvider> VisibleExternalProviders => ExternalProviders.Where(x => !String.IsNullOrWhiteSpace(x.DisplayName));
https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/ViewModel.cs#L12C1-L12C152
This results to the error message of Invalid login request being displayed in the UI.
Invalid login request
https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/Index.cshtml#L81
The text was updated successfully, but these errors were encountered:
josephdecock
No branches or pull requests
In the shortcut code for displaying only 1 external IdP, the
DisplayName
property is not set.https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/Index.cshtml.cs#L172
It is therefore not included in
VisibleExternalProviders
.https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/ViewModel.cs#L12C1-L12C152
This results to the error message of
Invalid login request
being displayed in the UI.https://github.com/DuendeSoftware/IdentityServer.Templates/blob/main/src/IdentityServerAspNetIdentity/Pages/Account/Login/Index.cshtml#L81
The text was updated successfully, but these errors were encountered: