• Scott Moser's avatar
    DataSourceMAAS: if a oauth request fails due to 403 try updating local time · 70cc7536
    Scott Moser authored
    In the event of a 403 (Unauthorized) in oauth, try set a 'oauth_clockskew'
    variable.  In future headers, use a time created by 'time.time() +
    self.oauth_clockskew'.  The idea here is that if the local time is bad (or even
    if the server time is bad) we will essentially use something that should be
    similar to the remote clock.
    
    This fixes LP: #978127.
    
    LP: #978127
    70cc7536
url_helper.py 7.96 KB