summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/main.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-20 17:14:13 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-21 18:28:52 +0100
commita8e71f7f20a1d5640d08ff637dc209206f536b8d (patch)
tree3e0d2643befe839aadc586293387f2cf32a54d0e /wrappers/python/eduvpn_common/main.py
parentb6c079587e035b073c32f52e537e253ae5a3f440 (diff)
Client + Exports: Forward tokens for /disconnect
Diffstat (limited to 'wrappers/python/eduvpn_common/main.py')
-rw-r--r--wrappers/python/eduvpn_common/main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 07e3b6d..4204239 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -332,14 +332,15 @@ class EduVPN(object):
if connecting_err:
raise connecting_err
- def set_disconnected(self, cleanup: bool = True) -> None:
+ def set_disconnected(self, cleanup: bool = True, tokens: Optional[Token] = None) -> None:
"""Set the FSM to disconnected
:param cleanup: bool: (Default value = True): Whether or not to call /disconnect to the server. This invalidates the OpenVPN/WireGuard configuration
+ :param tokens: Optional[Token] (Default value = None): The OAuth tokens if available
:raises WrappedError: An error by the Go library
"""
- disconnect_err = self.go_function(self.lib.SetDisconnected, cleanup)
+ disconnect_err = self.go_function(self.lib.SetDisconnected, cleanup, encode_tokens(tokens))
if disconnect_err:
raise disconnect_err