Module: Async::Caldav::TestStub
- Defined in:
- lib/async/caldav/forward_auth.rb
Class Method Summary collapse
Class Method Details
.inject(env, user: 'admin', email: nil, name: nil, groups: nil) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/async/caldav/forward_auth.rb', line 32 def inject(env, user: 'admin', email: nil, name: nil, groups: nil) env['HTTP_REMOTE_USER'] ||= user env['HTTP_REMOTE_EMAIL'] ||= email if email env['HTTP_REMOTE_NAME'] ||= name if name env['HTTP_REMOTE_GROUPS'] ||= groups if groups env end |