Closed dizda closed 9 months ago
Feel free to review @nemosupremo
Ah looks good, I was a bit confused on how you planned to return the users credentials and spent some time on that, but the get_credentials
makes more sense.
Only thing I would add is maybe SimpleUserPassword
should return an AuthenticationMethod::Password
like struct so that users who might depend on AuthenticationMethod::Password
with the username and password have a clear upgrade path.
Only thing I would add is maybe SimpleUserPassword should return an AuthenticationMethod::Password like struct so that users who might depend on AuthenticationMethod::Password with the username and password have a clear upgrade path.
Thanks for the feedback, I've updated the server example accordingly.
Released on 0.9.0
Based on the work of https://github.com/dizda/fast-socks5/pull/36 (thank you)
More flexibility has been added, such as
async fn
for authenticationallow_no_auth
flag, for scenario where we could auth the client via other parameters such as IP address, etc. so the client doesn't need to send credentials, but will be checked by the Authentication trait anyway.