'Decomposes the access token in the request to an expiration date, scopes, and User.'

def _decompose_access_token_response(self, request, response):

    content = json.loads(response.content)
    access_token = content[u'access_token']
    scope = content[u'scope']
    access_token_obj = self.get_adapter(request).get_access_token(access_token)
    user = access_token_obj.user
    scopes = scope.split(u'    ')
    expires_in = content[u'expires_in']
    return (expires_in, scopes, user)
