Skip to content

Commit

Permalink
Handle optional DAG request interval
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrob committed Nov 11, 2024
1 parent f0bf373 commit ab0fbd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emailproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = 'Simon Robinson'
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
__license__ = 'Apache 2.0'
__version__ = '2024-11-05' # ISO 8601 (YYYY-MM-DD)
__version__ = '2024-11-11' # ISO 8601 (YYYY-MM-DD)
__package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only

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

0 comments on commit ab0fbd3

Please sign in to comment.