def get_user_app_info(request): try: oauth_request = OAUTH_SERVER.extract_oauth_request(djangoutils.extract_request(request)) consumer, token, parameters = OAUTH_SERVER.check_resource_access(oauth_request) return consumer, token, parameters, oauth_request except oauth.OAuthError: return None, None, None, None
def get_user_app_info(request): try: oauth_request = OAUTH_SERVER.extract_oauth_request( djangoutils.extract_request(request)) consumer, token, parameters = OAUTH_SERVER.check_resource_access( oauth_request) return consumer, token, parameters, oauth_request except oauth.OAuthError: return None, None, None, None