module Api::Authentication
Authentication
methods for {Api::Client}
Public Instance Methods
basic_authenticated?()
click to toggle source
Indicates if the client was supplied basic auth credentials
@return [Boolean]
# File lib/api/authentication.rb, line 18 def basic_authenticated? !@basic_login.nil? && !@basic_login.empty? && !@basic_password.nil? && !@basic_password.empty? end
token_authenticated?()
click to toggle source
Indicates if the client was supplied an access token
@return [Boolean]
# File lib/api/authentication.rb, line 10 def token_authenticated? !@access_token.nil? && !@access_token.empty? end