{"action":"closed","issue":{"url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin/issues/4","repository_url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin","labels_url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin/issues/4/comments","events_url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin/issues/4/events","html_url":"https://github.com/Sainsburys/guzzle-oauth2-plugin/issues/4","id":158385250,"number":4,"title":"Help with additional examples","user":{"login":"stevenscg","id":176253,"avatar_url":"https://avatars.githubusercontent.com/u/176253?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenscg","html_url":"https://github.com/stevenscg","followers_url":"https://api.github.com/users/stevenscg/followers","following_url":"https://api.github.com/users/stevenscg/following{/other_user}","gists_url":"https://api.github.com/users/stevenscg/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenscg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenscg/subscriptions","organizations_url":"https://api.github.com/users/stevenscg/orgs","repos_url":"https://api.github.com/users/stevenscg/repos","events_url":"https://api.github.com/users/stevenscg/events{/privacy}","received_events_url":"https://api.github.com/users/stevenscg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sainsburys/guzzle-oauth2-plugin/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":{"login":"dm","id":150041,"avatar_url":"https://avatars.githubusercontent.com/u/150041?v=3","gravatar_id":"","url":"https://api.github.com/users/dm","html_url":"https://github.com/dm","followers_url":"https://api.github.com/users/dm/followers","following_url":"https://api.github.com/users/dm/following{/other_user}","gists_url":"https://api.github.com/users/dm/gists{/gist_id}","starred_url":"https://api.github.com/users/dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dm/subscriptions","organizations_url":"https://api.github.com/users/dm/orgs","repos_url":"https://api.github.com/users/dm/repos","events_url":"https://api.github.com/users/dm/events{/privacy}","received_events_url":"https://api.github.com/users/dm/received_events","type":"User","site_admin":false},"assignees":[{"login":"dm","id":150041,"avatar_url":"https://avatars.githubusercontent.com/u/150041?v=3","gravatar_id":"","url":"https://api.github.com/users/dm","html_url":"https://github.com/dm","followers_url":"https://api.github.com/users/dm/followers","following_url":"https://api.github.com/users/dm/following{/other_user}","gists_url":"https://api.github.com/users/dm/gists{/gist_id}","starred_url":"https://api.github.com/users/dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dm/subscriptions","organizations_url":"https://api.github.com/users/dm/orgs","repos_url":"https://api.github.com/users/dm/repos","events_url":"https://api.github.com/users/dm/events{/privacy}","received_events_url":"https://api.github.com/users/dm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-06-03T14:52:29Z","updated_at":"2016-09-17T02:40:39Z","closed_at":"2016-09-17T02:40:39Z","body":"This looks like a great implementation. Thanks for sharing!\r\n\r\nDo you happen to have any additional examples?\r\n\r\nI have one use case where the authorization service url and API url are different. I only had a few minutes with it yesterday, but was having problems updating a refresh token.\r\n\r\nAnother use case I have is where I already have an access_token stored in a database (etc) and just want to use the middleware to inject the token into the Authorization header of the requests. It seems like I just need to call `setAccessToken()`.\r\n\r\nFinally, is there any way to be notified if the middleware had to get new tokens from the auth server during a request?\r\n\r\nI'll be happy to add some color to these use cases as I get a chance to work with it further."}}
{"actor":{"display_login":"dm"}}