implement pluggable authentication using classes instead of modules
[coquelicot.git] / lib / coquelicot / auth.rb
1 module Coquelicot
2   module Auth
3     class AbstractAuthenticator
4       def initialize(app)
5         @app = app
6       end
7
8       def settings
9         @app
10       end
11
12       def authenticate(params)
13         raise NotImplementedError.new('Authenticator needs to override the `authenticate` method!')
14       end
15     end
16   end
17 end