{"action":"created","issue":{"url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/356","labels_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/356/comments","events_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/356/events","html_url":"https://github.com/bshaffer/oauth2-server-php/issues/356","id":29947531,"number":356,"title":"Event System?","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars.githubusercontent.com/u/103941?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-03-21T23:20:39Z","updated_at":"2016-01-27T08:36:38Z","closed_at":null,"body":"It sure would be nice if we had some sort of event system, so those consuming this application could hook into events and handle things accordingly\r\n\r\nPossible Events:\r\n\r\n - Access Token creation\r\n - Refresh Token creation\r\n - Crypto Token creation\r\n - Authorization Code creation\r\n - Request Errors thrown\r\n    - individual event for each, event for all, or both?\r\n    - error thrown by type (400, 401)?\r\n"},"comment":{"url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/comments/175480444","html_url":"https://github.com/bshaffer/oauth2-server-php/issues/356#issuecomment-175480444","issue_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/356","id":175480444,"user":{"login":"jackdpeterson","id":938961,"avatar_url":"https://avatars.githubusercontent.com/u/938961?v=3","gravatar_id":"","url":"https://api.github.com/users/jackdpeterson","html_url":"https://github.com/jackdpeterson","followers_url":"https://api.github.com/users/jackdpeterson/followers","following_url":"https://api.github.com/users/jackdpeterson/following{/other_user}","gists_url":"https://api.github.com/users/jackdpeterson/gists{/gist_id}","starred_url":"https://api.github.com/users/jackdpeterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackdpeterson/subscriptions","organizations_url":"https://api.github.com/users/jackdpeterson/orgs","repos_url":"https://api.github.com/users/jackdpeterson/repos","events_url":"https://api.github.com/users/jackdpeterson/events{/privacy}","received_events_url":"https://api.github.com/users/jackdpeterson/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T08:36:38Z","updated_at":"2016-01-27T08:36:38Z","body":"Started working on implementing observer pattern in server.php. Curious what your thoughts are.\r\n\r\nhttps://github.com/jackdpeterson/oauth2-server-php/blob/356/src/OAuth2/Server.php\r\n\r\n\r\nSample where I'm implementing the observable eventing to push events to Syslog.\r\nhttps://gist.github.com/jackdpeterson/f2e339836b7f88007040\r\n\r\n\r\n\r\n\r\n"}}