Module: Roy::BasicAuth
- Defined in:
- lib/roy/basic_auth.rb
Overview
This module provides helpers for using the HTTP basic authentication system.
Configuration:
- roy.conf.auth [:realm]
-
The authentication realm to use.
- roy.conf.auth [:logic]
-
A proc that checks if an user is authorized. See #authorized? in InstanceMethods.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.setup(roy) ⇒ Object
45 46 47 |
# File 'lib/roy/basic_auth.rb', line 45 def self.setup(roy) roy.send(:extend, InstanceMethods) end |