Module: AuthenticationHelper

Defined in:
lib/coadjutor/authentication_helper.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_with_basic_authObject

rubocop:disable Style/GuardClause



3
4
5
6
7
8
9
10
# File 'lib/coadjutor/authentication_helper.rb', line 3

def authenticate_with_basic_auth
  if Chamber.env.basic_auth.enabled?
    authenticate_or_request_with_http_basic do |username, password|
      username == Chamber.env.basic_auth.username &&
      password == Chamber.env.basic_auth.password
    end
  end
end