class Setsuzoku::Service::WebService::AuthStrategies::BasicAuthStrategy
The API OAuth Authentication Interface definition. Any Plugin
that implements this must implement all methods required for OAuth.
Defines all necessary methods for the basic auth strategy.
Public Class Methods
credential_class()
click to toggle source
# File lib/setsuzoku/service/web_service/auth_strategies/basic_auth_strategy.rb, line 20 def self.credential_class Setsuzoku::Service::WebService::Credentials::BasicAuthCredential end
required_instance_methods()
click to toggle source
# File lib/setsuzoku/service/web_service/auth_strategies/basic_auth_strategy.rb, line 16 def self.required_instance_methods [] end
Public Instance Methods
auth_credential_valid?()
click to toggle source
# File lib/setsuzoku/service/web_service/auth_strategies/basic_auth_strategy.rb, line 44 def auth_credential_valid? true end
auth_headers()
click to toggle source
# File lib/setsuzoku/service/web_service/auth_strategies/basic_auth_strategy.rb, line 28 def auth_headers { authorization: { basic_auth: { username: self.credential.username, password: self.credential.password } } } end