Class: CASServer::Authenticators::Base
- Inherits:
-
Object
- Object
- CASServer::Authenticators::Base
- Defined in:
- lib/casserver/authenticators/base.rb
Direct Known Subclasses
ClientCertificate, Google, LDAP, OpenID, SQL, SQLEncrypted, Test
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #configure(options) ⇒ Object
- #extra_attributes ⇒ Object
-
#validate(credentials) ⇒ Object
make this accessible so that we can pick up any transformations done within the authenticator.
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/casserver/authenticators/base.rb', line 4 def @options end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/casserver/authenticators/base.rb', line 5 def username @username end |
Instance Method Details
#configure(options) ⇒ Object
12 13 14 15 16 |
# File 'lib/casserver/authenticators/base.rb', line 12 def configure() raise ArgumentError, "options must be a HashWithIndifferentAccess" unless .kind_of? HashWithIndifferentAccess @options = .dup @extra_attributes = {} end |
#extra_attributes ⇒ Object
18 19 20 |
# File 'lib/casserver/authenticators/base.rb', line 18 def extra_attributes @extra_attributes end |
#validate(credentials) ⇒ Object
make this accessible so that we can pick up any transformations done within the authenticator
8 9 10 |
# File 'lib/casserver/authenticators/base.rb', line 8 def validate(credentials) raise NotImplementedError, "This method must be implemented by a class extending #{self.class}" end |