{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/17134","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/17134/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/17134/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/17134/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/17134","id":371422328,"node_id":"MDU6SXNzdWUzNzE0MjIzMjg=","number":17134,"title":"No refresh_token is returned when authorization_code is used in /token request","user":{"login":"timjroberts-inty","id":9480515,"node_id":"MDQ6VXNlcjk0ODA1MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9480515?v=4","gravatar_id":"","url":"https://api.github.com/users/timjroberts-inty","html_url":"https://github.com/timjroberts-inty","followers_url":"https://api.github.com/users/timjroberts-inty/followers","following_url":"https://api.github.com/users/timjroberts-inty/following{/other_user}","gists_url":"https://api.github.com/users/timjroberts-inty/gists{/gist_id}","starred_url":"https://api.github.com/users/timjroberts-inty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjroberts-inty/subscriptions","organizations_url":"https://api.github.com/users/timjroberts-inty/orgs","repos_url":"https://api.github.com/users/timjroberts-inty/repos","events_url":"https://api.github.com/users/timjroberts-inty/events{/privacy}","received_events_url":"https://api.github.com/users/timjroberts-inty/received_events","type":"User","site_admin":false},"labels":[{"id":646555990,"node_id":"MDU6TGFiZWw2NDY1NTU5OTA=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/active-directory/svc","name":"active-directory/svc","color":"0040cc","default":false},{"id":836704823,"node_id":"MDU6TGFiZWw4MzY3MDQ4MjM=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/assigned-to-author","name":"assigned-to-author","color":"e01f8f","default":false},{"id":853283851,"node_id":"MDU6TGFiZWw4NTMyODM4NTE=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/product-question","name":"product-question","color":"43e08a","default":false},{"id":836702742,"node_id":"MDU6TGFiZWw4MzY3MDI3NDI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"CelesteDG","id":16906646,"node_id":"MDQ6VXNlcjE2OTA2NjQ2","avatar_url":"https://avatars1.githubusercontent.com/u/16906646?v=4","gravatar_id":"","url":"https://api.github.com/users/CelesteDG","html_url":"https://github.com/CelesteDG","followers_url":"https://api.github.com/users/CelesteDG/followers","following_url":"https://api.github.com/users/CelesteDG/following{/other_user}","gists_url":"https://api.github.com/users/CelesteDG/gists{/gist_id}","starred_url":"https://api.github.com/users/CelesteDG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CelesteDG/subscriptions","organizations_url":"https://api.github.com/users/CelesteDG/orgs","repos_url":"https://api.github.com/users/CelesteDG/repos","events_url":"https://api.github.com/users/CelesteDG/events{/privacy}","received_events_url":"https://api.github.com/users/CelesteDG/received_events","type":"User","site_admin":false},"assignees":[{"login":"CelesteDG","id":16906646,"node_id":"MDQ6VXNlcjE2OTA2NjQ2","avatar_url":"https://avatars1.githubusercontent.com/u/16906646?v=4","gravatar_id":"","url":"https://api.github.com/users/CelesteDG","html_url":"https://github.com/CelesteDG","followers_url":"https://api.github.com/users/CelesteDG/followers","following_url":"https://api.github.com/users/CelesteDG/following{/other_user}","gists_url":"https://api.github.com/users/CelesteDG/gists{/gist_id}","starred_url":"https://api.github.com/users/CelesteDG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CelesteDG/subscriptions","organizations_url":"https://api.github.com/users/CelesteDG/orgs","repos_url":"https://api.github.com/users/CelesteDG/repos","events_url":"https://api.github.com/users/CelesteDG/events{/privacy}","received_events_url":"https://api.github.com/users/CelesteDG/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-18T08:45:00Z","updated_at":"2018-10-19T09:01:48Z","closed_at":null,"author_association":"NONE","body":"I attempting to use the auth_code grant type in order to retrieve and then cache tokens. I successfully receive the auth_code, but when I then post to the /token endpoint using grant_type=authorization_code, I receive a JSON object back with only the access_token defined.\n\nCould you define the scenarios in which a refresh_token would not be included in the token response?\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 2870d4a9-e204-023a-56a8-c34e56347b43\n* Version Independent ID: 846fe3ae-21cb-e030-f68f-db73acef0c74\n* Content: [Understand the OAuth 2.0 authorization code flow in Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code)\n* Content Source: [articles/active-directory/develop/v1-protocols-oauth-code.md](https://github.com/Microsoft/azure-docs/blob/master/articles/active-directory/develop/v1-protocols-oauth-code.md)\n* Service: **active-directory**\n* GitHub Login: @CelesteDG\n* Microsoft Alias: **celested**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/431295744","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/17134#issuecomment-431295744","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/17134","id":431295744,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTI5NTc0NA==","user":{"login":"timjroberts-inty","id":9480515,"node_id":"MDQ6VXNlcjk0ODA1MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9480515?v=4","gravatar_id":"","url":"https://api.github.com/users/timjroberts-inty","html_url":"https://github.com/timjroberts-inty","followers_url":"https://api.github.com/users/timjroberts-inty/followers","following_url":"https://api.github.com/users/timjroberts-inty/following{/other_user}","gists_url":"https://api.github.com/users/timjroberts-inty/gists{/gist_id}","starred_url":"https://api.github.com/users/timjroberts-inty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timjroberts-inty/subscriptions","organizations_url":"https://api.github.com/users/timjroberts-inty/orgs","repos_url":"https://api.github.com/users/timjroberts-inty/repos","events_url":"https://api.github.com/users/timjroberts-inty/events{/privacy}","received_events_url":"https://api.github.com/users/timjroberts-inty/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T09:01:48Z","updated_at":"2018-10-19T09:01:48Z","author_association":"NONE","body":"Many thanks for the prompt feedback. We found some answers on StackOverflow that cleared it up for us - namely, we now include the `Offline_Access` scope when hitting the /authorize and /token endpoints. This returns the `refresh_token`."}}
{"actor":{"display_login":"timjroberts-inty"}}