{"action":"created","issue":{"url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/2","repository_url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey","labels_url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/2/comments","events_url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/2/events","html_url":"https://github.com/nhoobin/moodle-auth_enrolkey/issues/2","id":133812464,"number":2,"title":"Accessing plugin settings","user":{"login":"mudrd8mz","id":85831,"avatar_url":"https://avatars.githubusercontent.com/u/85831?v=3","gravatar_id":"","url":"https://api.github.com/users/mudrd8mz","html_url":"https://github.com/mudrd8mz","followers_url":"https://api.github.com/users/mudrd8mz/followers","following_url":"https://api.github.com/users/mudrd8mz/following{/other_user}","gists_url":"https://api.github.com/users/mudrd8mz/gists{/gist_id}","starred_url":"https://api.github.com/users/mudrd8mz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mudrd8mz/subscriptions","organizations_url":"https://api.github.com/users/mudrd8mz/orgs","repos_url":"https://api.github.com/users/mudrd8mz/repos","events_url":"https://api.github.com/users/mudrd8mz/events{/privacy}","received_events_url":"https://api.github.com/users/mudrd8mz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T20:42:23Z","updated_at":"2016-02-17T23:39:22Z","closed_at":"2016-02-17T23:39:22Z","body":"In auth.php constructor, you seem to call `get_config('auth/token')`. Given how the plugin settings are named (correctly), I doubt this actually works. You do not use the config now so you probably did not notice. I believe it should read `get_config('auth_token')`."},"comment":{"url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/comments/185460655","html_url":"https://github.com/nhoobin/moodle-auth_enrolkey/issues/2#issuecomment-185460655","issue_url":"https://api.github.com/repos/nhoobin/moodle-auth_enrolkey/issues/2","id":185460655,"user":{"login":"nhoobin","id":17240109,"avatar_url":"https://avatars.githubusercontent.com/u/17240109?v=3","gravatar_id":"","url":"https://api.github.com/users/nhoobin","html_url":"https://github.com/nhoobin","followers_url":"https://api.github.com/users/nhoobin/followers","following_url":"https://api.github.com/users/nhoobin/following{/other_user}","gists_url":"https://api.github.com/users/nhoobin/gists{/gist_id}","starred_url":"https://api.github.com/users/nhoobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhoobin/subscriptions","organizations_url":"https://api.github.com/users/nhoobin/orgs","repos_url":"https://api.github.com/users/nhoobin/repos","events_url":"https://api.github.com/users/nhoobin/events{/privacy}","received_events_url":"https://api.github.com/users/nhoobin/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T23:39:22Z","updated_at":"2016-02-17T23:39:22Z","body":"I did not notice at all. I have fixed so that it now correctly retrieves the values from the configuration plugin table if this becomes a requirement in the future."}}