Skip to content

Commit ab0fbd3

Browse files
committed
Handle optional DAG request interval
1 parent f0bf373 commit ab0fbd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emailproxy.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__author__ = 'Simon Robinson'
77
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
88
__license__ = 'Apache 2.0'
9-
__version__ = '2024-11-05' # ISO 8601 (YYYY-MM-DD)
9+
__version__ = '2024-11-11' # ISO 8601 (YYYY-MM-DD)
1010
__package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only
1111

1212
import abc
@@ -1176,6 +1176,7 @@ def get_oauth2_authorisation_tokens(token_url, redirect_uri, client_id, client_s
11761176
params['grant_type'] = 'urn:ietf:params:oauth:grant-type:device_code'
11771177
params['device_code'] = authorisation_result['device_code']
11781178
expires_in = authorisation_result['expires_in']
1179+
authorisation_result['interval'] = authorisation_result.get('interval', 5) # see RFC 8628, Section 3.2
11791180
elif oauth2_flow == 'password':
11801181
params['username'] = username
11811182
params['password'] = password

0 commit comments

Comments
 (0)