{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/auth0.net/issues/9","labels_url":"https://api.github.com/repos/auth0/auth0.net/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/auth0/auth0.net/issues/9/comments","events_url":"https://api.github.com/repos/auth0/auth0.net/issues/9/events","html_url":"https://github.com/auth0/auth0.net/issues/9","id":32140860,"number":9,"title":"Support the \"scope\" option when calling /delegation.","user":{"login":"nicosabena","id":5222181,"avatar_url":"https://avatars.githubusercontent.com/u/5222181?v=3","gravatar_id":"","url":"https://api.github.com/users/nicosabena","html_url":"https://github.com/nicosabena","followers_url":"https://api.github.com/users/nicosabena/followers","following_url":"https://api.github.com/users/nicosabena/following{/other_user}","gists_url":"https://api.github.com/users/nicosabena/gists{/gist_id}","starred_url":"https://api.github.com/users/nicosabena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicosabena/subscriptions","organizations_url":"https://api.github.com/users/nicosabena/orgs","repos_url":"https://api.github.com/users/nicosabena/repos","events_url":"https://api.github.com/users/nicosabena/events{/privacy}","received_events_url":"https://api.github.com/users/nicosabena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-04-24T11:35:26Z","updated_at":"2015-11-20T14:32:59Z","closed_at":null,"body":"The /delegation api (https://docs.auth0.com/auth-api#post--delegation) supports the \"scope\" option to indicate the type of id token you are looking for.\r\nRight now the GetDelegationToken() method in the API is not giving any way of providing this option.\r\n```C#\r\n        /// <summary>\r\n        /// Gets a delegation token.\r\n        /// </summary>\r\n        /// <param name=\"token\">The current access token.</param>\r\n        /// <param name=\"targetClientId\">The client id of the target application.</param>\r\n        /// <returns>An instance of DelegationTokenResult containing the delegation token id.</returns>\r\n        public DelegationTokenResult GetDelegationToken(string token, string targetClientId)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/auth0/auth0.net/issues/comments/158416647","html_url":"https://github.com/auth0/auth0.net/issues/9#issuecomment-158416647","issue_url":"https://api.github.com/repos/auth0/auth0.net/issues/9","id":158416647,"user":{"login":"jimlambrt-roadscholar","id":12915598,"avatar_url":"https://avatars.githubusercontent.com/u/12915598?v=3","gravatar_id":"","url":"https://api.github.com/users/jimlambrt-roadscholar","html_url":"https://github.com/jimlambrt-roadscholar","followers_url":"https://api.github.com/users/jimlambrt-roadscholar/followers","following_url":"https://api.github.com/users/jimlambrt-roadscholar/following{/other_user}","gists_url":"https://api.github.com/users/jimlambrt-roadscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/jimlambrt-roadscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimlambrt-roadscholar/subscriptions","organizations_url":"https://api.github.com/users/jimlambrt-roadscholar/orgs","repos_url":"https://api.github.com/users/jimlambrt-roadscholar/repos","events_url":"https://api.github.com/users/jimlambrt-roadscholar/events{/privacy}","received_events_url":"https://api.github.com/users/jimlambrt-roadscholar/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T14:32:59Z","updated_at":"2015-11-20T14:32:59Z","body":"Just a comment: supporting scope as a parameter is extremely important.  We load authorization claims into the app_metadata for each user.   Without app_metadata in the scope, we would have to go back to auth0 endpoints during authen/auth and add more than 1.5 secs to every request. "}}