lib/frodo/concerns/authentication.rb
def authentication_middleware
        if oauth_refresh?
          return Frodo::Middleware::Authentication::Token
        end
        if password?
          return Frodo::Middleware::Authentication::Password
        end
        if client_credentials?
          return Frodo::Middleware::Authentication::ClientCredentials
        end
      end
# Internal: Determines what middleware will be used based on the options provided
Determines what middleware will be used based on the options provided
Determines what middleware will be used based on the options provided
def authentication_middleware
        if oauth_refresh?
          return Frodo::Middleware::Authentication::Token
        end
        if password?
          return Frodo::Middleware::Authentication::Password
        end
        if client_credentials?
          return Frodo::Middleware::Authentication::ClientCredentials
        end
      end
def authentication_middleware if oauth_refresh? return Frodo :: Middleware :: Authentication :: Token end if password? return Frodo :: Middleware :: Authentication :: Password end if client_credentials? return Frodo :: Middleware :: Authentication :: ClientCredentials end end
Internal: Determines what middleware will be used based on the options provided
Internal : Determines what middleware will be used based on the options provided