From 72697f369513b9f29cb98961657c5c5775ce8a97 Mon Sep 17 00:00:00 2001 From: Raja Nadar Date: Sun, 28 Aug 2016 23:33:45 -0700 Subject: [PATCH] marks app-id auth usage as obsolete for hashicorp/vault#1426 --- .../Authentication/Models/AppId/AppIdAuthenticationInfo.cs | 7 ++++++- .../Authentication/Models/AuthenticationBackendType.cs | 4 ++++ .../Providers/AppId/AppIdAuthenticationProvider.cs | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/VaultSharp/Backends/Authentication/Models/AppId/AppIdAuthenticationInfo.cs b/src/VaultSharp/Backends/Authentication/Models/AppId/AppIdAuthenticationInfo.cs index 69af40a2..9f544d73 100644 --- a/src/VaultSharp/Backends/Authentication/Models/AppId/AppIdAuthenticationInfo.cs +++ b/src/VaultSharp/Backends/Authentication/Models/AppId/AppIdAuthenticationInfo.cs @@ -1,10 +1,15 @@ -using VaultSharp.Infrastructure.Validation; +using System; +using VaultSharp.Infrastructure.Validation; namespace VaultSharp.Backends.Authentication.Models.AppId { /// /// Represents the login information for the AppId Authentication backend. /// + [Obsolete("The AppId Authentication backend in Vault is now deprecated with the addition " + + "of the new AppRole backend. There are no plans to remove it, but we encourage " + + "using AppRole whenever possible, as it offers enhanced functionality " + + "and can accommodate many more types of authentication paradigms.")] public class AppIdAuthenticationInfo : IAuthenticationInfo { /// diff --git a/src/VaultSharp/Backends/Authentication/Models/AuthenticationBackendType.cs b/src/VaultSharp/Backends/Authentication/Models/AuthenticationBackendType.cs index 6b587d52..4640f695 100644 --- a/src/VaultSharp/Backends/Authentication/Models/AuthenticationBackendType.cs +++ b/src/VaultSharp/Backends/Authentication/Models/AuthenticationBackendType.cs @@ -52,6 +52,10 @@ public class AuthenticationBackendType : IEquatable /// /// The application identifier. /// + [Obsolete("The AppId Authentication backend in Vault is now deprecated with the addition " + + "of the new AppRole backend. There are no plans to remove it, but we encourage " + + "using AppRole whenever possible, as it offers enhanced functionality " + + "and can accommodate many more types of authentication paradigms.")] public static AuthenticationBackendType AppId { get diff --git a/src/VaultSharp/Backends/Authentication/Providers/AppId/AppIdAuthenticationProvider.cs b/src/VaultSharp/Backends/Authentication/Providers/AppId/AppIdAuthenticationProvider.cs index a90d8e60..c6cb1004 100644 --- a/src/VaultSharp/Backends/Authentication/Providers/AppId/AppIdAuthenticationProvider.cs +++ b/src/VaultSharp/Backends/Authentication/Providers/AppId/AppIdAuthenticationProvider.cs @@ -9,6 +9,10 @@ namespace VaultSharp.Backends.Authentication.Providers.AppId { + [Obsolete("The AppId Authentication backend in Vault is now deprecated with the addition " + + "of the new AppRole backend. There are no plans to remove it, but we encourage " + + "using AppRole whenever possible, as it offers enhanced functionality " + + "and can accommodate many more types of authentication paradigms.")] internal class AppIdAuthenticationProvider : IAuthenticationProvider { private readonly AppIdAuthenticationInfo _appIdAuthenticationInfo;