<commit_before>class DiscourseSsoController < ApplicationController
  def index
    sso = SingleSignOnService.new(
        secret: current_tenant.settings(:discourse).sso_secret,
        query_string: request.query_string,
        user: current_user,
        base_url: "#{current_tenant.settings(:discourse).url}/session/sso_login"
    )

    redirect_to sso.redirect_url
  rescue RuntimeError
    raise "Bad Request"
  end
end<commit_msg>Change sso controller to use new interface<commit_after>class DiscourseSsoController < ApplicationController
  def index
    sso = SingleSignOnService.new(
        secret: current_tenant.settings(:discourse).sso_secret,
        query_string: request.query_string,
        user: current_user,
        discourse_base_url: "#{current_tenant.settings(:discourse).url}/session/sso_login",
        dysnomia_base_url: current_tenant.url
    )

    redirect_to sso.redirect_url
  rescue RuntimeError
    raise "Bad Request"
  end
end
{'fraction_non_alphanumeric': 0.07780082987551867, 'fraction_numerical': 0.0, 'mean_word_length': 3.8737373737373737, 'pattern_counts': {'":': 0, '<': 5, '<?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': '813557', 'n_tokens_mistral': 284, 'n_tokens_neox': 289, 'n_words': 55}