Skip to content

Commit 1f04a6a

Browse files
committed
Update the provider extensions to use "caption" instead of "name"
1 parent dea5be9 commit 1f04a6a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/AspNet.Security.OpenId.Steam/SteamAuthenticationExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public static AuthenticationBuilder AddSteam(
6363
/// </summary>
6464
/// <param name="builder">The authentication builder.</param>
6565
/// <param name="scheme">The authentication scheme associated with this instance.</param>
66-
/// <param name="name">The optional display name associated with this instance.</param>
66+
/// <param name="caption">The optional display name associated with this instance.</param>
6767
/// <param name="configuration">The delegate used to configure the Steam options.</param>
6868
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
6969
public static AuthenticationBuilder AddSteam(
7070
[NotNull] this AuthenticationBuilder builder,
71-
[NotNull] string scheme, [CanBeNull] string name,
71+
[NotNull] string scheme, [CanBeNull] string caption,
7272
[NotNull] Action<SteamAuthenticationOptions> configuration)
7373
{
74-
return builder.AddOpenId<SteamAuthenticationOptions, SteamAuthenticationHandler>(scheme, name, configuration);
74+
return builder.AddOpenId<SteamAuthenticationOptions, SteamAuthenticationHandler>(scheme, caption, configuration);
7575
}
7676
}
7777
}

src/AspNet.Security.OpenId/OpenIdAuthenticationExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public static AuthenticationBuilder AddOpenId(
6161
/// </summary>
6262
/// <param name="builder">The authentication builder.</param>
6363
/// <param name="scheme">The authentication scheme associated with this instance.</param>
64-
/// <param name="name">The optional display name associated with this instance.</param>
64+
/// <param name="caption">The optional display name associated with this instance.</param>
6565
/// <param name="configuration">The delegate used to configure the OpenID 2.0 options.</param>
6666
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
6767
public static AuthenticationBuilder AddOpenId(
6868
[NotNull] this AuthenticationBuilder builder,
69-
[NotNull] string scheme, [CanBeNull] string name,
69+
[NotNull] string scheme, [CanBeNull] string caption,
7070
[NotNull] Action<OpenIdAuthenticationOptions> configuration)
7171
{
72-
return builder.AddOpenId<OpenIdAuthenticationOptions, OpenIdAuthenticationHandler<OpenIdAuthenticationOptions>>(scheme, name, configuration);
72+
return builder.AddOpenId<OpenIdAuthenticationOptions, OpenIdAuthenticationHandler<OpenIdAuthenticationOptions>>(scheme, caption, configuration);
7373
}
7474

7575
/// <summary>
@@ -78,12 +78,12 @@ public static AuthenticationBuilder AddOpenId(
7878
/// </summary>
7979
/// <param name="builder">The authentication builder.</param>
8080
/// <param name="scheme">The authentication scheme associated with this instance.</param>
81-
/// <param name="name">The optional display name associated with this instance.</param>
81+
/// <param name="caption">The optional display name associated with this instance.</param>
8282
/// <param name="configuration">The delegate used to configure the OpenID 2.0 options.</param>
8383
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
8484
public static AuthenticationBuilder AddOpenId<TOptions, THandler>(
8585
[NotNull] this AuthenticationBuilder builder,
86-
[NotNull] string scheme, [CanBeNull] string name,
86+
[NotNull] string scheme, [CanBeNull] string caption,
8787
[NotNull] Action<TOptions> configuration)
8888
where TOptions : OpenIdAuthenticationOptions, new()
8989
where THandler : OpenIdAuthenticationHandler<TOptions>
@@ -108,7 +108,7 @@ public static AuthenticationBuilder AddOpenId<TOptions, THandler>(
108108
ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>,
109109
OpenIdAuthenticationInitializer<TOptions, THandler>>());
110110

111-
return builder.AddRemoteScheme<TOptions, THandler>(scheme, name, configuration);
111+
return builder.AddRemoteScheme<TOptions, THandler>(scheme, caption, configuration);
112112
}
113113
}
114114
}

0 commit comments

Comments
 (0)