/// <inheritdoc /> public PamResponse <string> PromptEchoOn(string text) { Console.Out.Write(text); Console.Out.Flush(); try { var input = Console.In.ReadLine() ?? string.Empty; return(PamResponse <string> .Success(input)); } catch (Exception ex) { _logger?.LogError(ex, ex.Message); return(PamResponse <string> .Error(PamStatus.PAM_AUTH_ERR)); } }
/// <inheritdoc /> public PamResponse <PamBinaryData> BinaryPrompt(PamBinaryData data) { _logger?.LogWarning("BinaryPrompt not supported"); return(PamResponse <PamBinaryData> .Error(PamStatus.PAM_CONV_ERR)); }
/// <inheritdoc /> public PamResponse <string> RadioType(string text) { _logger?.LogWarning("RadioType not supported, text={0}", text); return(PamResponse <string> .Error(PamStatus.PAM_CONV_ERR)); }
/// <inheritdoc /> public PamResponse <string> PromptEchoOn(string text) { _logger?.LogWarning("PromptEchoOn not supported, text={0}", text); return(PamResponse <string> .Error(PamStatus.PAM_CONV_ERR)); }
/// <inheritdoc /> public PamResponse <PamBinaryData> BinaryPrompt(PamBinaryData data) { return(PamResponse <PamBinaryData> .Error(PamStatus.PAM_CONV_ERR)); }
/// <inheritdoc /> public PamResponse <string> RadioType(string text) { return(PamResponse <string> .Error(PamStatus.PAM_CONV_ERR)); }