Ejemplo n.º 1
0
def process_auth(code):
    """
    The second step in the authorization chain. After the first step finished, a code was passed back to the website from google. This function exchanges that code for credentials, including a refresh token that can be used to get credentials without further authorization. It stores the credentials and returns them to the caller.
    """
    credentials=FLOW.step2_exchange(code)
    storage = Storage(CALENDAR_DATA)
    storage.put(credentials)
    return credentials
Ejemplo n.º 2
0
def process_auth(code):
    """
    The second step in the authorization chain. After the first step finished,
    a code was passed back to the website from google. This function exchanges
    that code for credentials, including a refresh token that can be used to
    get credentials without further authorization. It stores the credentials
    and returns them to the caller.
    """
    credentials = FLOW.step2_exchange(code)
    storage = Storage(CALENDAR_DATA)
    storage.put(credentials)
    return credentials
Ejemplo n.º 3
0
def process_auth(code):
    credentials = FLOW.step2_exchange(code)
    storage = Storage(CALENDAR_DATA)
    storage.put(credentials)
    return credentials
Ejemplo n.º 4
0
def process_auth(code):
    credentials=FLOW.step2_exchange(code)
    storage = Storage(CALENDAR_DATA)
    storage.put(credentials)
    return credentials