{"action":"created","issue":{"url":"https://api.github.com/repos/chiefy/vaulted/issues/55","labels_url":"https://api.github.com/repos/chiefy/vaulted/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/chiefy/vaulted/issues/55/comments","events_url":"https://api.github.com/repos/chiefy/vaulted/issues/55/events","html_url":"https://github.com/chiefy/vaulted/issues/55","id":124403353,"number":55,"title":"not all options passed to createToken","user":{"login":"jmls","id":929523,"avatar_url":"https://avatars.githubusercontent.com/u/929523?v=3","gravatar_id":"","url":"https://api.github.com/users/jmls","html_url":"https://github.com/jmls","followers_url":"https://api.github.com/users/jmls/followers","following_url":"https://api.github.com/users/jmls/following{/other_user}","gists_url":"https://api.github.com/users/jmls/gists{/gist_id}","starred_url":"https://api.github.com/users/jmls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmls/subscriptions","organizations_url":"https://api.github.com/users/jmls/orgs","repos_url":"https://api.github.com/users/jmls/repos","events_url":"https://api.github.com/users/jmls/events{/privacy}","received_events_url":"https://api.github.com/users/jmls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-30T21:41:41Z","updated_at":"2015-12-30T21:49:23Z","closed_at":null,"body":"I have this code\r\n\r\n```javascript\r\n vault.createToken({\r\n            body: {\r\n                id: \"x__\" + uuid.v4(),\r\n                policies: [\"xyz\"],\r\n                meta: { working: true},\r\n                display_name: \"foobar\",\r\n                num_uses: 42,\r\n                no_default_profile: true\r\n            }\r\n        })\r\n .then(function(result) {\r\n            debug(\"------->>\",result)\r\n```\r\n\r\nthat gives this result\r\n\r\n```javscript\r\n------->> +6ms { lease_id: '',\r\n  renewable: false,\r\n  lease_duration: 0,\r\n  data: null,\r\n  warnings: [ 'policy \"xyz\" does not exist' ],\r\n  auth: \r\n   { client_token: 'x__e1976131-814d-49f4-bbed-d7dffe7ff8d4',\r\n     policies: [ 'xyz', 'default' ],\r\n     metadata: { working: '1' },\r\n     lease_duration: 2592000,\r\n     renewable: true } }\r\n```\r\n\r\nas you can see, display_name and num_uses don't seem to be present in the returned token, and the no_default_profile flag is ignored. There is a common thread, in that all \"ignored\" options seem to have underscores in them ...\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chiefy/vaulted/issues/comments/168079652","html_url":"https://github.com/chiefy/vaulted/issues/55#issuecomment-168079652","issue_url":"https://api.github.com/repos/chiefy/vaulted/issues/55","id":168079652,"user":{"login":"kenjones-cisco","id":7967510,"avatar_url":"https://avatars.githubusercontent.com/u/7967510?v=3","gravatar_id":"","url":"https://api.github.com/users/kenjones-cisco","html_url":"https://github.com/kenjones-cisco","followers_url":"https://api.github.com/users/kenjones-cisco/followers","following_url":"https://api.github.com/users/kenjones-cisco/following{/other_user}","gists_url":"https://api.github.com/users/kenjones-cisco/gists{/gist_id}","starred_url":"https://api.github.com/users/kenjones-cisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenjones-cisco/subscriptions","organizations_url":"https://api.github.com/users/kenjones-cisco/orgs","repos_url":"https://api.github.com/users/kenjones-cisco/repos","events_url":"https://api.github.com/users/kenjones-cisco/events{/privacy}","received_events_url":"https://api.github.com/users/kenjones-cisco/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T21:49:22Z","updated_at":"2015-12-30T21:49:22Z","body":"Based on the Vault documentation, those values are not part of the result:\r\nhttps://vaultproject.io/docs/auth/token.html\r\n\r\nTo get those items you would have to do a lookup of the token after it is created.\r\n"}}