

def access_token(self):
    'Create an OAuth access token for an authorized client.\n\n        Defaults to /access_token. Invoked by client applications.\n        '
    access_token = generate_token(length=self.access_token_length[1])
    token_secret = generate_token(self.secret_length)
    client_key = request.oauth.client_key
    self.save_access_token(client_key, access_token, request.oauth.resource_owner_key, secret=token_secret)
    return urlencode([('oauth_token', access_token), ('oauth_token_secret', token_secret)])

dataset/ETHPy150Open ib-lundgren/flask-oauthprovider/flask_oauthprovider.py OAuthProvider.access_token/original