summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src/rest.rs
AgeCommit message (Collapse)AuthorFilesLines
2023-12-04Perform testing of access methods asynchronouslyMarkus Pettersson1-0/+4
Perform testing of access methods asynchronously in a separate `tokio` task as to not block the daemon from handling other daemon events during the testing window
2023-11-07Configure firewall rules to allow proxy clientsMarkus Pettersson1-2/+4
The default setting will (always) be to only allow processes with root-privilege to send/receive traffic from an allowed endpoint. This change is only supposed to be used with the local SOCKS5 api access method.
2023-11-07Add configurable transport protocol to local SOCKS5 access methodMarkus Pettersson1-2/+8
2023-10-30Ignore dropped response channel in API clientDavid Lönnhager1-3/+1
2023-10-30Share hostname string in RequestFactoryDavid Lönnhager1-3/+3
2023-10-30Rename REST request factory timeoutDavid Lönnhager1-4/+9
2023-10-30Remove unused URL componentDavid Lönnhager1-9/+2
2023-10-30Wait for unsuspendDavid Lönnhager1-4/+18
2023-10-30Newtype REST ResponseDavid Lönnhager1-24/+42
2023-10-30Rename RestRequest to RequestDavid Lönnhager1-25/+24
2023-10-30Handle authentication and errors in API clientDavid Lönnhager1-197/+148
2023-10-24Remove 'ResponseFailure' device error variantDavid Lönnhager1-15/+11
2023-10-23Improve error handling for API requests that failed to due being offlineDavid Lönnhager1-1/+16
2023-10-19Fold all access token requests into a single requestDavid Lönnhager1-48/+51
2023-10-16Add android conditional compilation for google payJonathan1-3/+29
Add conditional compilation for google pay API access for only android. Also allow new error type to be parsed. Additionally fix review comments, formatting and warnings.
2023-10-09UX improvements for `mullvad api-access`Markus Pettersson1-6/+18
- Re-phrase help texts for a lot of `mullvad api-access` commands - Add to help texts for some `mullvad api-access` commands - Compact the output of `mullvad api-access test` - `mullvad api-access status` is changed to `mullvad api-access get` to align with other `mullvad` commands. - `mullvad api-access get` does not print the enabled/disabled status of the shown access method - Rotate access method if the currently active one is updated or removed - Fix reset access method after `mullvad api-access test` After running `mullvad api-access test`, the previously used access method should be used, which was not the case previously. - Fix `mullvad api-access use` API connectivity check - `mullvad api-access use` now runs a test-routine to check that the new access method will function before comitting to it. If this check fails, the previously used access method will be used instead - guarantee that `set_api_access_method` has finished upon returning. Make `mullvad_api::rest::next_api_endpoint` `async` and send a message upon completion. This is propagated to the caller of `next_api_endpoint` which can `await` the result
2023-09-20Remove deadcode from mullvad-apiEmīls1-16/+0
2023-03-27Fix many typosAlexander Seiler1-1/+1
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-02-08Make async fns without awaits into regular fnsLinus Färnstrand1-1/+1
2023-01-30Run `cargo clippy --fix` with the new Rust 1.67 preferred formatLinus Färnstrand1-1/+1
2022-11-28Conditionally compile some API override fieldsDavid Lönnhager1-4/+14
2022-11-28Don't use bridges if the API endpoint is overriddenDavid Lönnhager1-1/+9
2022-06-21Fix the large majority of clippy warningsJonathan1-1/+1
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-06-14Manually fix the simpler non-semantic clippy warnsJonathan1-8/+2
This commit tries to manually fix the clippy warnings that are fairly straightforward and do not have rippling effects on the codebase nor have a very high chance of causing bugs.
2022-06-13Perform a clippy --fixjonathan1-10/+9
This is a giant commit which performs only a clippy --fix. Auditing can happen in two ways, either by reading every line or by running a `cargo clippy --fix` on the previous commit and make sure that the result is the same.
2022-05-11Don't stop device check if an API request is abortedDavid Lönnhager1-0/+7
2022-05-11Check status in API response body to determine whether a device has been revokedDavid Lönnhager1-1/+0
2022-04-26Rotate the API endpoint when bridge constraints changeDavid Lönnhager1-0/+7
2022-04-19Track API calls in device managerEmīls1-1/+1
Instead of blocking the device manager on API calls, the API calls are now serviced concurrently, allowing users of the device manager to retrieve data without blocking.
2022-04-11Refactor long-running timers and use talpid-time for suspend-awareDavid Lönnhager1-42/+32
clocks
2022-03-23Rename mullvad-rpc to mullvad-apiDavid Lönnhager1-0/+694