Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
add type property to login page links
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Aug 12, 2015
1 parent 2c06a20 commit 133ca7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/Core/Configuration/LoginPageLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ namespace IdentityServer3.Core.Configuration
/// </summary>
public class LoginPageLink
{
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>
/// The type.
/// </value>
public string Type { get; set; }

/// <summary>
/// Gets or sets the text.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions source/Core/Extensions/InternalOwinExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public static IEnumerable<LoginPageLink> GetLinksFromProviders(this IOwinContext
{
return types.Select(p => new LoginPageLink
{
Type = p.AuthenticationType,
Text = p.Caption,
Href = context.GetExternalProviderLoginUrl(p.AuthenticationType, signInMessageId)
});
Expand Down
1 change: 1 addition & 0 deletions source/Core/Extensions/LoginPageLinkExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ internal static IEnumerable<LoginPageLink> Render(this IEnumerable<LoginPageLink

result.Add(new LoginPageLink
{
Type = link.Type,
Text = link.Text,
Href = url
});
Expand Down

0 comments on commit 133ca7d

Please sign in to comment.