{"action":"created","issue":{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/140","labels_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/140/comments","events_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/140/events","html_url":"https://github.com/thomseddon/node-oauth2-server/issues/140","id":55173443,"number":140,"title":"Extension grant should be any valid URI","user":{"login":"phw","id":29852,"avatar_url":"https://avatars.githubusercontent.com/u/29852?v=3","gravatar_id":"","url":"https://api.github.com/users/phw","html_url":"https://github.com/phw","followers_url":"https://api.github.com/users/phw/followers","following_url":"https://api.github.com/users/phw/following{/other_user}","gists_url":"https://api.github.com/users/phw/gists{/gist_id}","starred_url":"https://api.github.com/users/phw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phw/subscriptions","organizations_url":"https://api.github.com/users/phw/orgs","repos_url":"https://api.github.com/users/phw/repos","events_url":"https://api.github.com/users/phw/events{/privacy}","received_events_url":"https://api.github.com/users/phw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/labels/proposal","name":"proposal","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/milestones/3","labels_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/milestones/3/labels","id":952141,"number":3,"title":"2.4.0","description":"","creator":{"login":"thomseddon","id":747138,"avatar_url":"https://avatars.githubusercontent.com/u/747138?v=3","gravatar_id":"","url":"https://api.github.com/users/thomseddon","html_url":"https://github.com/thomseddon","followers_url":"https://api.github.com/users/thomseddon/followers","following_url":"https://api.github.com/users/thomseddon/following{/other_user}","gists_url":"https://api.github.com/users/thomseddon/gists{/gist_id}","starred_url":"https://api.github.com/users/thomseddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomseddon/subscriptions","organizations_url":"https://api.github.com/users/thomseddon/orgs","repos_url":"https://api.github.com/users/thomseddon/repos","events_url":"https://api.github.com/users/thomseddon/events{/privacy}","received_events_url":"https://api.github.com/users/thomseddon/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2015-01-26T21:25:21Z","updated_at":"2015-01-27T09:32:31Z","due_on":"2015-01-30T00:00:00Z","closed_at":null},"comments":6,"created_at":"2015-01-22T16:20:37Z","updated_at":"2015-01-27T09:32:31Z","closed_at":"2015-01-27T09:32:31Z","body":"According to the spec the extension grant can be any valid URI. Currently node-oauth2-server expects it to start with either `http://` or `https://`, but any other URI should also work. E.g. if one wants to implement the JWT Bearer Token Grant Type the grant_type URI for the authorization grant is `urn:ietf:params:oauth:grant-type:jwt-bearer`.\r\n\r\nSee\r\nhttps://tools.ietf.org/html/draft-ietf-oauth-jwt-bearer-12#section-2.1\r\nhttp://tools.ietf.org/html/rfc6749#section-4.5\r\n\r\nA library that seems to handle the validation of URIs is https://github.com/garycourt/uri-js , but I have never used it."},"comment":{"url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/comments/71615829","html_url":"https://github.com/thomseddon/node-oauth2-server/issues/140#issuecomment-71615829","issue_url":"https://api.github.com/repos/thomseddon/node-oauth2-server/issues/140","id":71615829,"user":{"login":"thomseddon","id":747138,"avatar_url":"https://avatars.githubusercontent.com/u/747138?v=3","gravatar_id":"","url":"https://api.github.com/users/thomseddon","html_url":"https://github.com/thomseddon","followers_url":"https://api.github.com/users/thomseddon/followers","following_url":"https://api.github.com/users/thomseddon/following{/other_user}","gists_url":"https://api.github.com/users/thomseddon/gists{/gist_id}","starred_url":"https://api.github.com/users/thomseddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomseddon/subscriptions","organizations_url":"https://api.github.com/users/thomseddon/orgs","repos_url":"https://api.github.com/users/thomseddon/repos","events_url":"https://api.github.com/users/thomseddon/events{/privacy}","received_events_url":"https://api.github.com/users/thomseddon/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T09:32:31Z","updated_at":"2015-01-27T09:32:31Z","body":"#142 Merged"}}