diff --git a/src/Microsoft.AspNetCore.Identity/BuilderExtensions.cs b/src/Microsoft.AspNetCore.Identity/BuilderExtensions.cs index 7fb473820c..e1f9defb43 100644 --- a/src/Microsoft.AspNetCore.Identity/BuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Identity/BuilderExtensions.cs @@ -11,12 +11,21 @@ namespace Microsoft.AspNetCore.Builder public static class BuilderExtensions { /// + /// + /// This method is obsolete and will be removed in a future version. + /// The recommended alternative is + /// + /// /// Enables ASP.NET identity for the current application. + /// /// /// The instance this method extends. /// The instance this method extends. - [Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470")] + [Obsolete( + "This method is obsolete and will be removed in a future version. " + + "The recommended alternative is UseAuthentication(). " + + "See https://go.microsoft.com/fwlink/?linkid=845470")] public static IApplicationBuilder UseIdentity(this IApplicationBuilder app) - => app.UseAuthentication(); + => app.UseAuthentication(); } -} \ No newline at end of file +}