How to modify the domain of Salesforce

(Local deployment of gitlab) I want to log in to gitlab through Salesforce authorization, but it jumps to login.salesforce.com. Is it possible to jump to a custom domain (test.salesforce.com)

Try passing add-on args in your gitlab.rb to override the default site:

gitlab_rails['omniauth_providers'] = [
  {
    "name" => "salesforce",
    "app_id" => "SALESFORCE_CLIENT_ID",
    "app_secret" => "SALESFORCE_CLIENT_SECRET",
    "args" => { "client_options" => { "site" => "https://test.salesforce.com" } }
  }
]

Follows omniauth-salesforce/salesforce.rb at master · realdoug/omniauth-salesforce · GitHub

Great !

Already resolved, thank you.