Class: RubyCoded::Strategies::Base
- Inherits:
-
Object
- Object
- RubyCoded::Strategies::Base
show all
- Defined in:
- lib/ruby_coded/strategies/base.rb
Overview
Base interface for all authentication strategies
Instance Method Summary
collapse
Constructor Details
#initialize(provider) ⇒ Base
Returns a new instance of Base.
9
10
11
12
|
# File 'lib/ruby_coded/strategies/base.rb', line 9
def initialize(provider)
@provider = provider
@prompt = TTY::Prompt.new
end
|
Instance Method Details
#authenticate ⇒ Object
14
15
16
|
# File 'lib/ruby_coded/strategies/base.rb', line 14
def authenticate
raise NotImplementedError
end
|
#refresh(credentials) ⇒ Object
18
19
20
|
# File 'lib/ruby_coded/strategies/base.rb', line 18
def refresh(credentials)
raise NotImplementedError
end
|
#validate(credentials) ⇒ Object
22
23
24
|
# File 'lib/ruby_coded/strategies/base.rb', line 22
def validate(credentials)
raise NotImplementedError
end
|