Skip to content

Commit

Permalink
Changes to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Dietz committed Jul 17, 2012
1 parent d0c5c5b commit 7460a51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions yagi/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ def rax_auth(conn, headers, force=False):
return Auth.token
user = yagi.config.get("handler_auth", "user")
key = yagi.config.get("handler_auth", "key")
tenant = yagi.config.get("handler_auth", "tenant")
auth_server = yagi.config.get("handler_auth", "auth_server")
req = httplib2.Http()
req = httplib2.Http(disable_ssl_certificate_validation=True)
body = {"auth": {
"RAX-KSKEY:apiKeyCredentials": {
"passwordCredentials": {
"username": user,
"apiKey": key,
"tenantName": tenant}}}
"password": key,
}}}
auth_headers = {}
auth_headers["User-Agent"] = "Yagi"
auth_headers["Accept"] = "application/json"
Expand Down
2 changes: 1 addition & 1 deletion yagi/handler/atompub_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _send_notification(self, endpoint, puburl, headers, body, conn):
msg = ("AtomPub Delivery Failed to %s with:\n%s" % (endpoint, e))
raise MessageDeliveryFailed(msg)

def new_http_connection(force=False):
def new_http_connection(self, force=False):
conn = http_util.LimitingBodyHttp()
auth_method = yagi.auth.get_auth_method()
headers = {}
Expand Down

0 comments on commit 7460a51

Please sign in to comment.