= semantic_form_for authentication_provider,
        url: provider_admin_authentication_provider_path(authentication_provider),
        as: :authentication_provider do |f|
  = f.inputs do
    = f.input :client_id, required: f.object.oauth_config_required?
    = f.input :client_secret, required: f.object.oauth_config_required?

    = render partial: authentication_provider.kind,
             locals: { f: f, authentication_provider: authentication_provider }

  = f.buttons do
    = f.commit_button
