Module: AuthenticationHelper
- Defined in:
- lib/coadjutor/authentication_helper.rb
Instance Method Summary collapse
Instance Method Details
#authenticate_with_basic_auth ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/coadjutor/authentication_helper.rb', line 2 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 |