Commit graph

46 commits

Author SHA1 Message Date
Carson McManus
c809d1e725
clean up some unused code (#327) 2023-09-28 22:06:51 +00:00
Carson McManus
fe663cf43f
add HTTP proxy support (#264)
- allow extracting the http client from web api transport
- refactor most commands so that they can accept an external transport
- update confirmer to use transport's http client
- update remove command
- update TwoFactorClient so it doesn't need to be mutable
- update get_server_time so it requires a transport
- update remove_authenticator
- update login proceedure to use given transport
- update usages of do_login
- update setup
- update trade
- update code command
- update qr-login command
- make borrowcheck happy
- make WebApiTransport Clone and remove Default impl
- remove dead code
- fix lints

closes #177
2023-07-02 12:57:13 +00:00
Carson McManus
3146d4824c
refactor to make adding proxy support easier later (#263) 2023-07-02 11:17:09 +00:00
Carson McManus
1632e2f10e
add PhoneLinker, and the ability to add a phone number to the account during setup (#223)
- add proto for IPhoneService
- add PhoneClient
- add PhoneLinker
- fix lints and such
- add comments
- update phone linker
- use phonenumber crate for phone linker
- adjust errors for account linker
- update setup command to be able to add phone numbers
- adjust logging in the setup command
- update account linker
2023-06-25 17:11:24 +00:00
Carson McManus
cbc46ad8eb
Dead code cleanup, subcommand refactor (#206)
- clean up dead code
- fix lints
- move Session type to legacy module
- refactor service names into constants
- refactor build_url to be less restrictive for service names
- refactor most commands into their own modules
2023-06-23 17:36:23 +00:00
Carson McManus
bfd0667f3a
Use IAuthenticationService for login, account migrations, other major refactors (#194)
fixes #193
fixes #192  
fixes #107

- [x] Implement the new login process
    - [x] Tested
- [x] Update the authenticator setup process
    - [x] Tested
- [x] Update the authenticator remove process
    - [x] Tested
- [x] Manifest format migrator
    - [x] Tested
- [x] Make it possible to import SDA accounts
- [x] Make sure confirmations still work
    - [x] Fetching
    - [x] Responding
- [x] Make it so that the login process doesn't prompt for which method
to use
- [x] Make it so that device confirmation and email confirmation auth
session guards work
2023-06-22 20:20:15 +00:00
Carson McManus
99f977d7df reorganize steam api responses 2022-12-06 10:02:07 -05:00
Carson McManus
5634cf82ee fix doc comment 2022-12-05 11:18:59 -05:00
Carson McManus
738e8f1664 update comment 2022-12-05 10:41:15 -05:00
Carson McManus
2a5284f678 update some docs 2022-12-05 10:32:58 -05:00
Carson McManus
dcf1779f39 update AddAuthenticatorResponse 2022-12-05 10:29:54 -05:00
Carson McManus
d3099d7686 implement phone_validate 2022-12-05 10:29:28 -05:00
Carson McManus
610cda120e get_server_time now returns Result, fixes #152 2022-06-20 20:56:36 -04:00
Carson McManus
1a6ad62a2e cargo fmt 2022-06-19 14:52:17 -04:00
Carson McManus
eeded86641 protect Session memory, values are zeroized when dropped 2022-06-19 14:52:17 -04:00
Carson McManus
deabfc299d protect top level secrets in SteamGuardAccount
except for session
2022-06-19 14:52:17 -04:00
Yoav Shai
4900a2ede7 Make WebCookie optional in Session
The maFile from Steam Desktop Authenticator may set this field to null
2022-01-15 02:21:36 +02:00
Carson McManus
1e2d82afb5 remove the need for nightly toolchain 2021-08-25 10:26:34 -04:00
Carson McManus
4e09b98d07 add TwoFactorSecret type, which zeros out memory when deallocated 2021-08-24 22:56:25 -04:00
Carson McManus
746f76af18 fix login response deserialization 2021-08-10 21:07:04 -04:00
Carson McManus
51fea91577 remove stray line 2021-08-10 20:54:29 -04:00
Carson McManus
5379e9572c document phone_add_ajaxop more 2021-08-10 20:54:01 -04:00
Carson McManus
217a88f0de add phone_add_ajaxop 2021-08-10 20:28:20 -04:00
Carson McManus
72c0acfbf1 cargo fmt 2021-08-10 17:17:41 -04:00
Carson McManus
c3d3f33ec3 add remove_authenticator 2021-08-09 23:08:51 -04:00
Carson McManus
555b47b3fb fix add authenticator response parsing again 2021-08-09 22:46:50 -04:00
Carson McManus
5cfdb84bc2 add trace logging for finalize_authenticator 2021-08-09 22:11:09 -04:00
Carson McManus
ad2cdd2a7e fix parsing for add authenticator response 2021-08-09 22:00:49 -04:00
Carson McManus
691d927050 adding phone numbers does not work 2021-08-09 21:43:46 -04:00
Carson McManus
c17bdf92a5 apply session id cookie if session is present to all requests 2021-08-09 20:40:06 -04:00
Carson McManus
bb762b2f47 add some more logging in phoneajax 2021-08-09 20:11:15 -04:00
Carson McManus
b2414e0c33 fixed session not being transfered to AccountLinker 2021-08-09 20:05:23 -04:00
Carson McManus
afafe44d60 sometimes webcookie field can be missing?
I got a login response that did not include the `webcookie` field. Added a test case for it.
2021-08-09 19:49:53 -04:00
Carson McManus
db2ec59c07 add account link finalization 2021-08-09 00:09:34 -04:00
Carson McManus
e0578fce39 finish steamapi::finalize_authenticator 2021-08-08 19:11:15 -04:00
Carson McManus
38f41b144f refactor to use SteamApiResponse 2021-08-08 19:09:15 -04:00
Carson McManus
58897b6695 implement the first step for account linking process 2021-08-08 18:32:50 -04:00
Carson McManus
2e4058cfca add add_authenticator to steamapi module 2021-08-08 15:25:27 -04:00
Carson McManus
e4d7ea4475 move phoneajax methods to steamapi module 2021-08-08 13:39:18 -04:00
Carson McManus
b57bc38341 add rustfmt.toml and run cargo fmt 2021-08-08 12:54:46 -04:00
Carson McManus
52d247f102 cargo fmt 2021-08-08 12:34:06 -04:00
Carson McManus
a808fa1fe6 move userlogin to another module 2021-08-08 12:23:17 -04:00
Carson McManus
8b18e9a292 fix user login for cases where transfer_login is not required 2021-08-08 11:16:06 -04:00
Carson McManus
79f8341aad move most http requests to the steam API into SteamApiClient 2021-08-08 01:26:25 -04:00
Tilo Spannagel
f3910790bb Run "cargo fmt" 2021-08-01 12:43:18 +00:00
Carson McManus
c6d9fd0d75 seperate cli stuff from library stuff, and put it in another crate 2021-07-31 12:24:49 -04:00
Renamed from src/steamapi.rs (Browse further)