<commit_before>OmniAuth.config.failure_raise_out_environments = []
OmniAuth.config.path_prefix = '/manage/auth'

client = Settings.services[0].dashboard_client

Rails.application.config.middleware.use OmniAuth::Builder do
  unless Rails.env.test?
    provider :cloudfoundry, client.id, client.secret, {
      auth_server_url: Configuration.auth_server_url,
      token_server_url: Configuration.token_server_url
    }
  end
end
<commit_msg>Request least privs from user<commit_after>OmniAuth.config.failure_raise_out_environments = []
OmniAuth.config.path_prefix = '/manage/auth'

client = Settings.services[0].dashboard_client

Rails.application.config.middleware.use OmniAuth::Builder do
  unless Rails.env.test?
    provider :cloudfoundry, client.id, client.secret, {
      auth_server_url: Configuration.auth_server_url,
      token_server_url: Configuration.token_server_url,
      scope: %w(cloud_controller.read openid)
    }
  end
end

{'fraction_non_alphanumeric': 0.09544008483563096, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 5.090322580645161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6177727', 'n_tokens_mistral': 302, 'n_tokens_neox': 299, 'n_words': 47}