You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: omniauth_callbacks_controller.rb
    path of file: ./repos/bluedoc/app/controllers/users
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  protect_from_forgery except: 
    
  def failure
    set_flash_message! :alert, :failure, kind: BlueDoc::Utils.omniauth_camelize(failed_strategy.name), reason: failure_message

    if failed_strategy.name == "ldap"
      render "devise/sessions/ldap"
    else
      redirect_to new_user_session_path
    end