Skip to content

Instantly share code, notes, and snippets.

/Auth issues Secret

Created February 13, 2016 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fc2bf9448e3cceb99aca to your computer and use it in GitHub Desktop.
Save anonymous/fc2bf9448e3cceb99aca to your computer and use it in GitHub Desktop.
require 'nokogiri'
require 'mechanize'
#require 'httpclient'
#client = HTTPClient.new
agent = Mechanize.new
#mechanize = Mechanize.new
agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
#page = agent.get('https://contactcenter.com/Intra/')
auth(superawesomeusernamehere, mypasshere, domain = nil) = https://contactcenter.com/Intra/
#def add_auth uri, user, pass, realm = nil, domain = nil
# uri = URI uri unless URI === uri
# raise ArgumentError,
'NTLM domain given with realm which NTLM does not use' if
# realm and domain
# uri += '/'
# auth_accounts https://contactcenter.com/Intra/ nil = superawesomeusernamehere, mypasshere, nil
# self
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment