{"action":"created","comment":{"url":"https://api.github.com/repos/go-goose/goose/pulls/comments/38194399","id":38194399,"diff_hunk":"@@ -0,0 +1,198 @@\n+package identityservice\n+\n+import (\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"net/http\"\n+\t\"time\"\n+\n+\t\"gopkg.in/goose.v1/testservices/hook\"\n+)\n+\n+// Implement the v3 User Pass form of identity (Keystone)\n+\n+type V3UserPassRequest struct {\n+\tAuth struct {\n+\t\tIdentity struct {\n+\t\t\tMethods  []string `json:\"methods\"`\n+\t\t\tPassword struct {\n+\t\t\t\tUser struct {\n+\t\t\t\t\tName     string `json:\"name\"`\n+\t\t\t\t\tPassword string `json:\"password\"`\n+\t\t\t\t} `json:\"user\"`\n+\t\t\t} `json:\"password\"`\n+\t\t} `json:\"identity\"`\n+\t\tScope struct {\n+\t\t\tProject struct {\n+\t\t\t\tName string `json:\"name\"`\n+\t\t\t} `json:\"project\"`\n+\t\t} `json:\"scope\"`\n+\t} `json:\"auth\"`\n+}\n+\n+type V3Endpoint struct {\n+\tInterface string `json:\"interface\"`\n+\tRegion    string `json:\"region\"`\n+\tURL       string `json:\"url\"`\n+}\n+\n+type V3Service struct {\n+\tID        string       `json:\"id\"`\n+\tType      string       `json:\"type\"`\n+\tEndpoints []V3Endpoint `json:\"endpoints\"`\n+}\n+\n+type V3TokenResponse struct {\n+\tExpires time.Time   `json:\"expires_at\"`\n+\tIssued  time.Time   `json:\"issued_at\"`\n+\tMethods []string    `json:\"methods\"`\n+\tCatalog []V3Service `json:\"catalog,omitempty\"`\n+\tProject *v3Project  `json:\"project,omitempty\"`\n+\tUser    struct {\n+\t\tID   string `json:\"id\"`\n+\t\tName string `json:\"name\"`\n+\t} `json:\"user\"`\n+}","path":"testservices/identityservice/v3userpass.go","position":56,"original_position":56,"commit_id":"e4aab8b2b4959a43b51ffff31198e5e18c56bff1","original_commit_id":"e4aab8b2b4959a43b51ffff31198e5e18c56bff1","user":{"login":"dimitern","id":619986,"avatar_url":"https://avatars.githubusercontent.com/u/619986?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitern","html_url":"https://github.com/dimitern","followers_url":"https://api.github.com/users/dimitern/followers","following_url":"https://api.github.com/users/dimitern/following{/other_user}","gists_url":"https://api.github.com/users/dimitern/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitern/subscriptions","organizations_url":"https://api.github.com/users/dimitern/orgs","repos_url":"https://api.github.com/users/dimitern/repos","events_url":"https://api.github.com/users/dimitern/events{/privacy}","received_events_url":"https://api.github.com/users/dimitern/received_events","type":"User","site_admin":false},"body":"Roles?","created_at":"2015-08-28T12:25:26Z","updated_at":"2015-08-28T12:25:26Z","html_url":"https://github.com/go-goose/goose/pull/15#discussion_r38194399","pull_request_url":"https://api.github.com/repos/go-goose/goose/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/go-goose/goose/pulls/comments/38194399"},"html":{"href":"https://github.com/go-goose/goose/pull/15#discussion_r38194399"},"pull_request":{"href":"https://api.github.com/repos/go-goose/goose/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/go-goose/goose/pulls/15","id":43533496,"html_url":"https://github.com/go-goose/goose/pull/15","diff_url":"https://github.com/go-goose/goose/pull/15.diff","patch_url":"https://github.com/go-goose/goose/pull/15.patch","issue_url":"https://api.github.com/repos/go-goose/goose/issues/15","number":15,"state":"open","locked":false,"title":"Initial support for v3 userpass authentication.","user":{"login":"mhilton","id":1136018,"avatar_url":"https://avatars.githubusercontent.com/u/1136018?v=3","gravatar_id":"","url":"https://api.github.com/users/mhilton","html_url":"https://github.com/mhilton","followers_url":"https://api.github.com/users/mhilton/followers","following_url":"https://api.github.com/users/mhilton/following{/other_user}","gists_url":"https://api.github.com/users/mhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/mhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhilton/subscriptions","organizations_url":"https://api.github.com/users/mhilton/orgs","repos_url":"https://api.github.com/users/mhilton/repos","events_url":"https://api.github.com/users/mhilton/events{/privacy}","received_events_url":"https://api.github.com/users/mhilton/received_events","type":"User","site_admin":false},"body":"This is support for v3 authentication, currently only using the default domain.","created_at":"2015-08-27T15:48:08Z","updated_at":"2015-08-28T12:25:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9014ba8709a8768a9805893fe85f227b4b5ec35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/go-goose/goose/pulls/15/commits","review_comments_url":"https://api.github.com/repos/go-goose/goose/pulls/15/comments","review_comment_url":"https://api.github.com/repos/go-goose/goose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-goose/goose/issues/15/comments","statuses_url":"https://api.github.com/repos/go-goose/goose/statuses/e4aab8b2b4959a43b51ffff31198e5e18c56bff1","head":{"label":"mhilton:000-v3-auth","ref":"000-v3-auth","sha":"e4aab8b2b4959a43b51ffff31198e5e18c56bff1","user":{"login":"mhilton","id":1136018,"avatar_url":"https://avatars.githubusercontent.com/u/1136018?v=3","gravatar_id":"","url":"https://api.github.com/users/mhilton","html_url":"https://github.com/mhilton","followers_url":"https://api.github.com/users/mhilton/followers","following_url":"https://api.github.com/users/mhilton/following{/other_user}","gists_url":"https://api.github.com/users/mhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/mhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhilton/subscriptions","organizations_url":"https://api.github.com/users/mhilton/orgs","repos_url":"https://api.github.com/users/mhilton/repos","events_url":"https://api.github.com/users/mhilton/events{/privacy}","received_events_url":"https://api.github.com/users/mhilton/received_events","type":"User","site_admin":false},"repo":{"id":41289557,"name":"goose","full_name":"mhilton/goose","owner":{"login":"mhilton","id":1136018,"avatar_url":"https://avatars.githubusercontent.com/u/1136018?v=3","gravatar_id":"","url":"https://api.github.com/users/mhilton","html_url":"https://github.com/mhilton","followers_url":"https://api.github.com/users/mhilton/followers","following_url":"https://api.github.com/users/mhilton/following{/other_user}","gists_url":"https://api.github.com/users/mhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/mhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhilton/subscriptions","organizations_url":"https://api.github.com/users/mhilton/orgs","repos_url":"https://api.github.com/users/mhilton/repos","events_url":"https://api.github.com/users/mhilton/events{/privacy}","received_events_url":"https://api.github.com/users/mhilton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhilton/goose","description":"goose (Go OpenStack Exchange) - Go bindings for talking to OpenStack.","fork":true,"url":"https://api.github.com/repos/mhilton/goose","forks_url":"https://api.github.com/repos/mhilton/goose/forks","keys_url":"https://api.github.com/repos/mhilton/goose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhilton/goose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhilton/goose/teams","hooks_url":"https://api.github.com/repos/mhilton/goose/hooks","issue_events_url":"https://api.github.com/repos/mhilton/goose/issues/events{/number}","events_url":"https://api.github.com/repos/mhilton/goose/events","assignees_url":"https://api.github.com/repos/mhilton/goose/assignees{/user}","branches_url":"https://api.github.com/repos/mhilton/goose/branches{/branch}","tags_url":"https://api.github.com/repos/mhilton/goose/tags","blobs_url":"https://api.github.com/repos/mhilton/goose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhilton/goose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhilton/goose/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhilton/goose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhilton/goose/statuses/{sha}","languages_url":"https://api.github.com/repos/mhilton/goose/languages","stargazers_url":"https://api.github.com/repos/mhilton/goose/stargazers","contributors_url":"https://api.github.com/repos/mhilton/goose/contributors","subscribers_url":"https://api.github.com/repos/mhilton/goose/subscribers","subscription_url":"https://api.github.com/repos/mhilton/goose/subscription","commits_url":"https://api.github.com/repos/mhilton/goose/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhilton/goose/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhilton/goose/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhilton/goose/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhilton/goose/contents/{+path}","compare_url":"https://api.github.com/repos/mhilton/goose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhilton/goose/merges","archive_url":"https://api.github.com/repos/mhilton/goose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhilton/goose/downloads","issues_url":"https://api.github.com/repos/mhilton/goose/issues{/number}","pulls_url":"https://api.github.com/repos/mhilton/goose/pulls{/number}","milestones_url":"https://api.github.com/repos/mhilton/goose/milestones{/number}","notifications_url":"https://api.github.com/repos/mhilton/goose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhilton/goose/labels{/name}","releases_url":"https://api.github.com/repos/mhilton/goose/releases{/id}","created_at":"2015-08-24T07:47:11Z","updated_at":"2015-08-24T07:47:12Z","pushed_at":"2015-08-27T14:47:10Z","git_url":"git://github.com/mhilton/goose.git","ssh_url":"git@github.com:mhilton/goose.git","clone_url":"https://github.com/mhilton/goose.git","svn_url":"https://github.com/mhilton/goose","homepage":null,"size":2530,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"v1"}},"base":{"label":"go-goose:liberty","ref":"liberty","sha":"be6030ce33a6d77f5e9c63b7698030e6431d5343","user":{"login":"go-goose","id":10880085,"avatar_url":"https://avatars.githubusercontent.com/u/10880085?v=3","gravatar_id":"","url":"https://api.github.com/users/go-goose","html_url":"https://github.com/go-goose","followers_url":"https://api.github.com/users/go-goose/followers","following_url":"https://api.github.com/users/go-goose/following{/other_user}","gists_url":"https://api.github.com/users/go-goose/gists{/gist_id}","starred_url":"https://api.github.com/users/go-goose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-goose/subscriptions","organizations_url":"https://api.github.com/users/go-goose/orgs","repos_url":"https://api.github.com/users/go-goose/repos","events_url":"https://api.github.com/users/go-goose/events{/privacy}","received_events_url":"https://api.github.com/users/go-goose/received_events","type":"Organization","site_admin":false},"repo":{"id":30405075,"name":"goose","full_name":"go-goose/goose","owner":{"login":"go-goose","id":10880085,"avatar_url":"https://avatars.githubusercontent.com/u/10880085?v=3","gravatar_id":"","url":"https://api.github.com/users/go-goose","html_url":"https://github.com/go-goose","followers_url":"https://api.github.com/users/go-goose/followers","following_url":"https://api.github.com/users/go-goose/following{/other_user}","gists_url":"https://api.github.com/users/go-goose/gists{/gist_id}","starred_url":"https://api.github.com/users/go-goose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-goose/subscriptions","organizations_url":"https://api.github.com/users/go-goose/orgs","repos_url":"https://api.github.com/users/go-goose/repos","events_url":"https://api.github.com/users/go-goose/events{/privacy}","received_events_url":"https://api.github.com/users/go-goose/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-goose/goose","description":"goose (Go OpenStack Exchange) - Go bindings for talking to OpenStack.","fork":false,"url":"https://api.github.com/repos/go-goose/goose","forks_url":"https://api.github.com/repos/go-goose/goose/forks","keys_url":"https://api.github.com/repos/go-goose/goose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-goose/goose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-goose/goose/teams","hooks_url":"https://api.github.com/repos/go-goose/goose/hooks","issue_events_url":"https://api.github.com/repos/go-goose/goose/issues/events{/number}","events_url":"https://api.github.com/repos/go-goose/goose/events","assignees_url":"https://api.github.com/repos/go-goose/goose/assignees{/user}","branches_url":"https://api.github.com/repos/go-goose/goose/branches{/branch}","tags_url":"https://api.github.com/repos/go-goose/goose/tags","blobs_url":"https://api.github.com/repos/go-goose/goose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-goose/goose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-goose/goose/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-goose/goose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-goose/goose/statuses/{sha}","languages_url":"https://api.github.com/repos/go-goose/goose/languages","stargazers_url":"https://api.github.com/repos/go-goose/goose/stargazers","contributors_url":"https://api.github.com/repos/go-goose/goose/contributors","subscribers_url":"https://api.github.com/repos/go-goose/goose/subscribers","subscription_url":"https://api.github.com/repos/go-goose/goose/subscription","commits_url":"https://api.github.com/repos/go-goose/goose/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-goose/goose/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-goose/goose/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-goose/goose/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-goose/goose/contents/{+path}","compare_url":"https://api.github.com/repos/go-goose/goose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-goose/goose/merges","archive_url":"https://api.github.com/repos/go-goose/goose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-goose/goose/downloads","issues_url":"https://api.github.com/repos/go-goose/goose/issues{/number}","pulls_url":"https://api.github.com/repos/go-goose/goose/pulls{/number}","milestones_url":"https://api.github.com/repos/go-goose/goose/milestones{/number}","notifications_url":"https://api.github.com/repos/go-goose/goose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-goose/goose/labels{/name}","releases_url":"https://api.github.com/repos/go-goose/goose/releases{/id}","created_at":"2015-02-06T09:32:43Z","updated_at":"2015-05-18T23:12:24Z","pushed_at":"2015-08-27T15:48:08Z","git_url":"git://github.com/go-goose/goose.git","ssh_url":"git@github.com:go-goose/goose.git","clone_url":"https://github.com/go-goose/goose.git","svn_url":"https://github.com/go-goose/goose","homepage":null,"size":2515,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":5,"default_branch":"v1"}},"_links":{"self":{"href":"https://api.github.com/repos/go-goose/goose/pulls/15"},"html":{"href":"https://github.com/go-goose/goose/pull/15"},"issue":{"href":"https://api.github.com/repos/go-goose/goose/issues/15"},"comments":{"href":"https://api.github.com/repos/go-goose/goose/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/go-goose/goose/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/go-goose/goose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-goose/goose/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/go-goose/goose/statuses/e4aab8b2b4959a43b51ffff31198e5e18c56bff1"}}}}