mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 20:45:11 +00:00
feat(proxies)!: rewrite ExpressVPN provider to Android device login
Swap cookie/PKCE auth for the OAuth 2.0 device authorization grant with a cached rotating refresh token. Fix the connection-token key (`cat`) and move the cache to {cache}/vpn/ to match ProtonVPN.
BREAKING CHANGE: cookie-file auth removed; run once with `enable: true` to approve a device code.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -31,7 +31,7 @@ def initialize_proxy_providers() -> List[Any]:
|
||||
proxy_providers.append(Basic(**proxy_config["basic"]))
|
||||
# ExpressVPN/ProtonVPN auto-load when their default cookie file exists (no yaml needed)
|
||||
expressvpn = ExpressVPN(**(proxy_config.get("expressvpn") or {}))
|
||||
if proxy_config.get("expressvpn") or expressvpn.cookie_path.is_file():
|
||||
if proxy_config.get("expressvpn") or expressvpn.cache_path.is_file():
|
||||
proxy_providers.append(expressvpn)
|
||||
if proxy_config.get("nordvpn"):
|
||||
proxy_providers.append(NordVPN(**proxy_config["nordvpn"]))
|
||||
|
||||
Reference in New Issue
Block a user