Module: Landable::AuthenticationService
- Defined in:
- app/services/landable/authentication_service.rb
Defined Under Namespace
Classes: EchoAuthenticator
Class Method Summary collapse
Class Method Details
.call(username, password) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/services/landable/authentication_service.rb', line 5 def self.call(username, password) strategies = Landable.configuration.authenticators strategies.each do |strategy| ident = strategy.call username, password return ident if ident end raise AuthenticationFailedError end |