3
ܓi,! @ s~ d dl Z yd dlZdZW n ek
r0 dZY nX d dlZd dlmZmZmZ d dlm Z dZ
dZe jdZ
G d d
d
ZdS ) NTF)datetime timedeltatimezone)TIMEOUT_DEFAULTz sos-toolsz,urn:ietf:params:oauth:grant-type:device_codeZsosc @ sZ e Zd ZdZdd Zdd Zdd Zdd Zd
d Zdd
Z dd Z
dd ZdddZdS )DeviceAuthorizationClassz$
Device Authorization Class
c C s* d | _ d | _d | _|| _|| _| j d S )N)
_access_token_access_expires_at&_DeviceAuthorizationClass__device_codeclient_identifier_urltoken_endpoint_use_device_code_grant)selfr
r r /usr/lib/python3.6/__init__.py__init__! s z!DeviceAuthorizationClass.__init__c C s$ | j td| j | j dS )zv
Start the device auth flow. In the future we will
store the tokens in an in-memory keyring.
z