diff --git a/gen/OpenIddict.Client.WebIntegration.Generators/OpenIddictClientWebIntegrationGenerator.cs b/gen/OpenIddict.Client.WebIntegration.Generators/OpenIddictClientWebIntegrationGenerator.cs index 9201918c..7bfa6079 100644 --- a/gen/OpenIddict.Client.WebIntegration.Generators/OpenIddictClientWebIntegrationGenerator.cs +++ b/gen/OpenIddict.Client.WebIntegration.Generators/OpenIddictClientWebIntegrationGenerator.cs @@ -75,6 +75,9 @@ public sealed partial class OpenIddictClientWebIntegrationBuilder /// /// The delegate used to configure the OpenIddict/{{ provider.display_name }} options. /// The instance. + {{~ if provider.obsolete ~}} + [Obsolete(""This provider is no longer supported and will be removed in a future version."")] + {{~ end ~}} public OpenIddictClientWebIntegrationBuilder Add{{ provider.name }}(Action configuration) { if (configuration is null) @@ -103,6 +106,9 @@ public sealed partial class OpenIddictClientWebIntegrationBuilder /// /// Exposes the necessary methods required to configure the {{ provider.display_name }} integration. /// + {{~ if provider.obsolete ~}} + [Obsolete(""This provider is no longer supported and will be removed in a future version."")] + {{~ end ~}} public sealed partial class {{ provider.name }} { /// @@ -678,6 +684,8 @@ public sealed partial class OpenIddictClientWebIntegrationBuilder DisplayName = (string?) provider.Attribute("DisplayName") ?? (string) provider.Attribute("Name"), Documentation = (string?) provider.Attribute("Documentation"), + Obsolete = (bool?) provider.Attribute("Obsolete") ?? false, + Environments = provider.Elements("Environment").Select(environment => new { Name = (string?) environment.Attribute("Name") ?? "Production" diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml index 603f6dbe..ecdd7ab6 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml @@ -6,11 +6,11 @@ --> + + + A boolean indicating whether the provider is obsolete. + + + + + + + The documentation URI, if applicable.