diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-26 15:43:35 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-26 15:43:35 +0200 |
| commit | 75aa163ccf407e9690f9ea0e548f8fed70073722 (patch) | |
| tree | dd68386a24c8c479149d094bb209fb0a78071c06 /wrappers/python/eduvpncommon/main.py | |
| parent | a5d33f95ba68263e6c0ca758c5b854530332d9ae (diff) | |
OAuth: Add a Cancel method
Diffstat (limited to 'wrappers/python/eduvpncommon/main.py')
| -rw-r--r-- | wrappers/python/eduvpncommon/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wrappers/python/eduvpncommon/main.py b/wrappers/python/eduvpncommon/main.py index da8b186..eae7014 100644 --- a/wrappers/python/eduvpncommon/main.py +++ b/wrappers/python/eduvpncommon/main.py @@ -18,6 +18,11 @@ def Register(name, config_directory, state_callback, debug): err_string = GetPtrString(ptr_err) return err_string +def CancelOAuth(): + ptr_err = lib.CancelOAuth() + err_string = GetPtrString(ptr_err) + return err_string + def Deregister(): lib.Deregister() @@ -58,6 +63,9 @@ class EduVPN(object): self.config_directory = config_directory register_callback(self) + def cancel_oauth(self) -> str: + return CancelOAuth() + def deregister(self): Deregister() |
