Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Configurable renew delay #616

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eduvpn/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ def reconnect(success: bool = True):
if callback:
callback(False)
return
time.sleep(int(os.getenv("EDUVPN_RENEW_DELAY", "1")))
# Delete the OAuth access and refresh token
# Start the OAuth authorization flow
self.common.renew_session()
Expand Down
4 changes: 4 additions & 0 deletions eduvpn/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,3 +731,7 @@ def letsconnect():
_common = common.EduVPN(LETSCONNECT_CLIENT_ID, __version__, str(LETSCONNECT_CONFIG_PREFIX))
cmd = CommandLine("Let's Connect!", LETS_CONNECT, _common)
cmd.start()


if __name__ == "__main__":
eduvpn()