{"action":"opened","issue":{"url":"https://api.github.com/repos/panva/node-oidc-provider/issues/6","repository_url":"https://api.github.com/repos/panva/node-oidc-provider","labels_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/6/comments","events_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/6/events","html_url":"https://github.com/panva/node-oidc-provider/issues/6","id":151488453,"number":6,"title":"refresh keystore only when needed","user":{"login":"panva","id":241506,"avatar_url":"https://avatars.githubusercontent.com/u/241506?v=3","gravatar_id":"","url":"https://api.github.com/users/panva","html_url":"https://github.com/panva","followers_url":"https://api.github.com/users/panva/followers","following_url":"https://api.github.com/users/panva/following{/other_user}","gists_url":"https://api.github.com/users/panva/gists{/gist_id}","starred_url":"https://api.github.com/users/panva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panva/subscriptions","organizations_url":"https://api.github.com/users/panva/orgs","repos_url":"https://api.github.com/users/panva/repos","events_url":"https://api.github.com/users/panva/events{/privacy}","received_events_url":"https://api.github.com/users/panva/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/panva/node-oidc-provider/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-27T20:53:25Z","updated_at":"2016-04-27T20:53:25Z","closed_at":null,"body":"At the moment a keystore refresh is called before every validation using that keystore, ideally validation is attempted, and only in case of a failure refresh is called. Refreshing should also be throttled."}}