{"action":"created","issue":{"url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/21","repository_url":"https://api.github.com/repos/adam-paterson/oauth2-slack","labels_url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/21/comments","events_url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/21/events","html_url":"https://github.com/adam-paterson/oauth2-slack/issues/21","id":328244997,"node_id":"MDU6SXNzdWUzMjgyNDQ5OTc=","number":21,"title":"Use updated endpoint for user identity info","user":{"login":"AndreiIgna","id":263021,"node_id":"MDQ6VXNlcjI2MzAyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/263021?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreiIgna","html_url":"https://github.com/AndreiIgna","followers_url":"https://api.github.com/users/AndreiIgna/followers","following_url":"https://api.github.com/users/AndreiIgna/following{/other_user}","gists_url":"https://api.github.com/users/AndreiIgna/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiIgna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiIgna/subscriptions","organizations_url":"https://api.github.com/users/AndreiIgna/orgs","repos_url":"https://api.github.com/users/AndreiIgna/repos","events_url":"https://api.github.com/users/AndreiIgna/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiIgna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T18:17:52Z","updated_at":"2018-06-21T10:04:12Z","closed_at":null,"author_association":"NONE","body":"When the OAuth is used for \"Sign In with Slack\", the Slack API provides a separate endpoint for user info, `https://slack.com/api/users.identity` instead of `https://slack.com/api/users.identity`\r\n\r\nThis is important for login-only apps, as the apps that use only `identity.*` scopes are not counted as app integrations. Lots of teams prefer this so the app integration limit is left unchanged.\r\n\r\nThere's more info here https://api.slack.com/docs/sign-in-with-slack#using_tokens_to_retrieve_user_and_team_information and have a few suggestions:\r\n- make the [endpoint for user details](https://github.com/adam-paterson/oauth2-slack/blob/develop/src/Provider/Slack.php#L58) editable. If custom endpoint is not provided, use default one\r\n- detect if scopes are `identity.*` then use `https://slack.com/api/users.identity`. If not using `identity.*` scopes, use default\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/comments/399048102","html_url":"https://github.com/adam-paterson/oauth2-slack/issues/21#issuecomment-399048102","issue_url":"https://api.github.com/repos/adam-paterson/oauth2-slack/issues/21","id":399048102,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTA0ODEwMg==","user":{"login":"adam-paterson","id":1008727,"node_id":"MDQ6VXNlcjEwMDg3Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/1008727?v=4","gravatar_id":"","url":"https://api.github.com/users/adam-paterson","html_url":"https://github.com/adam-paterson","followers_url":"https://api.github.com/users/adam-paterson/followers","following_url":"https://api.github.com/users/adam-paterson/following{/other_user}","gists_url":"https://api.github.com/users/adam-paterson/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-paterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-paterson/subscriptions","organizations_url":"https://api.github.com/users/adam-paterson/orgs","repos_url":"https://api.github.com/users/adam-paterson/repos","events_url":"https://api.github.com/users/adam-paterson/events{/privacy}","received_events_url":"https://api.github.com/users/adam-paterson/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T10:04:12Z","updated_at":"2018-06-21T10:04:12Z","author_association":"OWNER","body":"@AndreiIgna I've got no idea how I wasn't notified of this one. I'll look into it this week and get a release out.\r\n\r\nThanks for your interest in the library."}}
{"actor":{"display_login":"adam-paterson"}}