olegkap has applied patch #12705.
Comment:
Partially applied in 22105
I did not include pagent authentication since it seemd to me very specific as well using some UI methods.
Also, it seemes that pagent authentication is basically the same as private key authentication. May be I should expose some internal classes to make it possible to implement ConnectionMethod classes in your application