Support for get_auth_code_manually
to work with generic channels
#7
Labels
enhancement
New feature or request
get_auth_code_manually
to work with generic channels
#7
I have been using this commit since you implemented it: 62db905#diff-95eb5afe64e2d10a8f9a34145dbb1fe9d99ca910471f4325e2fc3635d92a89edR115 and have found it extremely helpful, especially when working on a remote machine and the callback doesn't work seamlessly with what's registered in Schwab.
I have reviewed #1, and I think there is still a helpful use-case to get some kind of channel based manual auth. If you're okay with it, I'd like to work on this and open a pull request to support this functionality.
Namely, instead of explicitly relying on
stdout
to provide the authorization link andstdin
to provide the callback URL containing the token, I'd like to make introduce another function that uses a generictx
andrx
channel, where the default implementation could still utilizestdout
andstdin
. This way, there is no change in functionality for users. But by exposing a generic trait, it could open up usecases where authentication could be push-based (e.g.,tx
to sms, email, or some other webhook / mfa mechanism, and thenrx
to provide the callback). This would allow users to authenticate without an explicit TTY session.Please let me know what you think.
The text was updated successfully, but these errors were encountered: