Skip to content

Commit 73b94a1

Browse files
authored
Add a remark to the documentation for AddAuthenticationClient(isDefaultScheme) (#564)
Fixes #520
1 parent dbe09e5 commit 73b94a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Microsoft.AspNetCore.SystemWebAdapters.CoreServices/Authentication/RemoteAppAuthenticationExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ public static AuthenticationBuilder AddRemoteAppAuthentication(this Authenticati
6767
/// </summary>
6868
/// <param name="isDefaultScheme">Specifies whether the remote authentication scheme should be the default authentication scheme. If false, remote authentication will only be used for endpoints specifically requiring the remote authentication scheme.</param>
6969
/// <param name="configureOptions">Configuration options for the remote authentication handler.</param>
70+
/// <remarks>
71+
/// This API allows you to decide if the remote authentication is the default scheme. However, starting in .NET 7, if there is only a single scheme, it will automatically be the default. To see how to configure this, please read the documentation
72+
/// <see href="https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/7.0/default-authentication-scheme">here</see>.
73+
/// </remarks>
7074
public static ISystemWebAdapterRemoteClientAppBuilder AddAuthenticationClient(this ISystemWebAdapterRemoteClientAppBuilder builder, bool isDefaultScheme, Action<RemoteAppAuthenticationClientOptions>? configureOptions = null)
7175
{
7276
ArgumentNullException.ThrowIfNull(builder);

0 commit comments

Comments
 (0)