def _credentials_from_request(request):
 if ((oauth2_settings.storage_model is None) or request.user.is_authenticated()):
  return get_storage(request).get()
 else:
  return None

def _credentials_from_request ( request ) : if ( ( oauth2_settings . storage_model is None ) or request . user . is_authenticated ( ) ) : return get_storage ( request ) . get ( ) else : return None
gets the authorized credentials for this flow .