Bug 59199 - Console.ReadLine support in Workbooks
Summary: Console.ReadLine support in Workbooks
Status: CONFIRMED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Cross Platform (Shared Code) ()
Version: 1.3.0 RC 2
Hardware: PC Windows
: --- enhancement
Target Milestone: 1.4
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2017-09-03 17:30 UTC by mike.murko
Modified: 2018-03-29 14:46 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 59199 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description mike.murko 2017-09-03 17:30:42 UTC
Want to make a Console Workbook that requires a user's password but don't want to store it in the actual file. My first thought was to use Console.ReadLine and get user's input in a variable.

Right now, the cell just keeps running, and no other cells are executable.

Are there any plans for accepting console user input in Xamarin Workbooks?
Comment 1 Sandy Armstrong [MSFT] 2017-09-03 18:40:05 UTC
There is no ReadLine support at this time, but you could make a non-Console workbook and add password entry to the GUI.
Comment 2 Aaron Bockover [MSFT] 2017-09-05 14:02:02 UTC
We are also planning a general purpose token/password storage mechanism for exactly this reason. It would provide an API which you would use in your workbook to request a token/password. Invoking the API would prompt the user to input it with the option of [securely] storing it in a vault local to the user's account. On Mac this would use the system keychain, and on Windows would use DPAPI.
Comment 3 mike.murko 2017-09-05 14:19:57 UTC
In terms of passwords that's really close to what I was thinking. Right now I'm just using NuGet CredentialsManagement and having one line where you store your password in the Windows vault under Generic Credentials. The problems is to remember to remove the password before committing the workbook file. From then on it just reads from the vault to use the password again.

However, basic CLI user input for any value would be very useful for more applications.
Comment 4 mike.murko 2018-03-29 14:36:48 UTC
Saw Workbooks is now on Github (https://github.com/Microsoft/workbooks). Should I move this request to that project? 

I can even start tinkering with a PR. Weee!
Comment 5 Sandy Armstrong [MSFT] 2018-03-29 14:46:13 UTC
Hi Mike! Yes, moving this to Github would be great. And PRs are definitely welcome. :-)