{"action":"created","issue":{"url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/12","repository_url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso","labels_url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/12/comments","events_url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/12/events","html_url":"https://github.com/dmirandaa/moodle-auth_saml2sso/issues/12","id":298796826,"node_id":"MDU6SXNzdWUyOTg3OTY4MjY=","number":12,"title":"Plugin doesn't respect user_authenticated_hook from Moodle auth plugin workflow","user":{"login":"temujin9","id":627414,"node_id":"MDQ6VXNlcjYyNzQxNA==","avatar_url":"https://avatars1.githubusercontent.com/u/627414?v=4","gravatar_id":"","url":"https://api.github.com/users/temujin9","html_url":"https://github.com/temujin9","followers_url":"https://api.github.com/users/temujin9/followers","following_url":"https://api.github.com/users/temujin9/following{/other_user}","gists_url":"https://api.github.com/users/temujin9/gists{/gist_id}","starred_url":"https://api.github.com/users/temujin9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temujin9/subscriptions","organizations_url":"https://api.github.com/users/temujin9/orgs","repos_url":"https://api.github.com/users/temujin9/repos","events_url":"https://api.github.com/users/temujin9/events{/privacy}","received_events_url":"https://api.github.com/users/temujin9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-21T00:11:16Z","updated_at":"2018-10-29T17:41:48Z","closed_at":null,"author_association":"NONE","body":"This plugin doesn't allow other plugins to run their user_authenticated_hook on a successful login, but instead immediately redirects to `$SESSION->wantsurl` immediately. This makes it difficult to construct `wantsurl` on variables obtained from the Moodle login.\r\n\r\nhttps://docs.moodle.org/dev/Authentication_plugins describes the expected workflow."},"comment":{"url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/comments/434008057","html_url":"https://github.com/dmirandaa/moodle-auth_saml2sso/issues/12#issuecomment-434008057","issue_url":"https://api.github.com/repos/dmirandaa/moodle-auth_saml2sso/issues/12","id":434008057,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDAwODA1Nw==","user":{"login":"mfprimo","id":1607497,"node_id":"MDQ6VXNlcjE2MDc0OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1607497?v=4","gravatar_id":"","url":"https://api.github.com/users/mfprimo","html_url":"https://github.com/mfprimo","followers_url":"https://api.github.com/users/mfprimo/followers","following_url":"https://api.github.com/users/mfprimo/following{/other_user}","gists_url":"https://api.github.com/users/mfprimo/gists{/gist_id}","starred_url":"https://api.github.com/users/mfprimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfprimo/subscriptions","organizations_url":"https://api.github.com/users/mfprimo/orgs","repos_url":"https://api.github.com/users/mfprimo/repos","events_url":"https://api.github.com/users/mfprimo/events{/privacy}","received_events_url":"https://api.github.com/users/mfprimo/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T17:41:48Z","updated_at":"2018-10-29T17:41:48Z","author_association":"COLLABORATOR","body":"Hi Nathaniel,\r\n  could you provide us a test case or a description of the currente and expected behaviour?\r\n\r\nThanks."}}
{"actor":{"display_login":"mfprimo"}}