diff --git a/libraries/Microsoft.Bot.Connector/Authentication/AseChannelValidation.cs b/libraries/Microsoft.Bot.Connector/Authentication/AseChannelValidation.cs index 923d7c0f0c..7cb54b5a27 100644 --- a/libraries/Microsoft.Bot.Connector/Authentication/AseChannelValidation.cs +++ b/libraries/Microsoft.Bot.Connector/Authentication/AseChannelValidation.cs @@ -190,7 +190,7 @@ public static async Task AuthenticateAseTokenAsync(string authHe if (!await _credentialProvider.IsValidAppIdAsync(appID).ConfigureAwait(false)) { - await Console.Out.WriteLineAsync(appID).ConfigureAwait(false); + throw new UnauthorizedAccessException($"AseChannelValidation Invalid AppId passed on token: {appID}"); } return identity;