{"action":"opened","issue":{"url":"https://api.github.com/repos/cloudfoundry/cf-uaa-lib/issues/12","labels_url":"https://api.github.com/repos/cloudfoundry/cf-uaa-lib/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cf-uaa-lib/issues/12/comments","events_url":"https://api.github.com/repos/cloudfoundry/cf-uaa-lib/issues/12/events","html_url":"https://github.com/cloudfoundry/cf-uaa-lib/issues/12","id":57291548,"number":12,"title":"Cannot login to UAA","user":{"login":"adun153","id":800073,"avatar_url":"https://avatars.githubusercontent.com/u/800073?v=3","gravatar_id":"","url":"https://api.github.com/users/adun153","html_url":"https://github.com/adun153","followers_url":"https://api.github.com/users/adun153/followers","following_url":"https://api.github.com/users/adun153/following{/other_user}","gists_url":"https://api.github.com/users/adun153/gists{/gist_id}","starred_url":"https://api.github.com/users/adun153/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adun153/subscriptions","organizations_url":"https://api.github.com/users/adun153/orgs","repos_url":"https://api.github.com/users/adun153/repos","events_url":"https://api.github.com/users/adun153/events{/privacy}","received_events_url":"https://api.github.com/users/adun153/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-11T09:11:37Z","updated_at":"2015-02-11T09:11:37Z","closed_at":null,"body":"Using the following sample code:\r\n```\r\n#!/usr/bin/env ruby\r\nrequire 'uaa'\r\ntoken_issuer = CF::UAA::TokenIssuer.new(\"https://uaa.cloudfoundry.com\", \"vmc\")\r\nputs token_issuer.prompts.inspect\r\ntoken = token_issuer.implicit_grant_with_creds(username: \"<your_username>\", password: \"<your_password>\")\r\ntoken_info = TokenCoder.decode(token.info[\"access_token\"], nil, nil, false) #token signature not verified\r\nputs token_info[\"user_name\"]\r\n```\r\n\r\nI replace the URL with the URL of my UAA in my working CF deployment. (Just http though, \r\n`token_issuer = CF::UAA::TokenIssuer.new(\"http://uaa.<myCFdomain>, \"vmc\")`\r\n\r\n`token = token_issuer.implicit_grant_with_creds(username: \"adminusername\", password: \"userpassword\")`\r\n\r\nAnd I get this error:\r\n\r\n```\r\n/root/ruby/lib/ruby/gems/1.9.1/gems/cf-uaa-lib-2.1.0/lib/uaa/token_issuer.rb:142:in implicit_grant_with_creds': status 401 (CF::UAA::BadResponse) from buildsource.rb:7:in'\r\n```\r\n\r\nAm I using it wrong?\r\n\r\nAlso, I can't find actual user documentation for the lib itself. Where can I find it?"}}