Login secrets and TOTP support
Richard Tweed
I want to use testdriver to test the end to end usage of a website that requires login (and https://en.wikipedia.org/wiki/Time-based_one-time_password)
I do not want to be storing the username and password in the yaml test, instead I want it to be read from the environment or (even better) a file.
Since the TOTP will vary over time, I'll need a way for the TOTP key/details to be read, and for it to generate a valid code and submit it within the validity model
Here's an example from playwright https://playwrightsolutions.com/playwright-login-test-with-2-factor-authentication-2fa-enabled/ thought I would expect "secret" to get configured from the environment, or a file
I
Ian Jennings
I'm going to leave this open as we investigate TOTP
I
Ian Jennings
Thanks for reporting this Richard Tweed! We released support for secrets a couple of weeks ago, but it was undocumented. I've just published a page here outlining how to share credentials with TestDriver