{"action":"opened","issue":{"url":"https://api.github.com/repos/panva/node-oidc-provider/issues/299","repository_url":"https://api.github.com/repos/panva/node-oidc-provider","labels_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/299/comments","events_url":"https://api.github.com/repos/panva/node-oidc-provider/issues/299/events","html_url":"https://github.com/panva/node-oidc-provider/issues/299","id":334110286,"node_id":"MDU6SXNzdWUzMzQxMTAyODY=","number":299,"title":"Session Find Returns New Session","user":{"login":"jpreese","id":6980197,"node_id":"MDQ6VXNlcjY5ODAxOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/6980197?v=4","gravatar_id":"","url":"https://api.github.com/users/jpreese","html_url":"https://github.com/jpreese","followers_url":"https://api.github.com/users/jpreese/followers","following_url":"https://api.github.com/users/jpreese/following{/other_user}","gists_url":"https://api.github.com/users/jpreese/gists{/gist_id}","starred_url":"https://api.github.com/users/jpreese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpreese/subscriptions","organizations_url":"https://api.github.com/users/jpreese/orgs","repos_url":"https://api.github.com/users/jpreese/repos","events_url":"https://api.github.com/users/jpreese/events{/privacy}","received_events_url":"https://api.github.com/users/jpreese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T14:38:35Z","updated_at":"2018-06-20T14:38:35Z","closed_at":null,"author_association":"NONE","body":"It looks like the .find() method within the Session class will always return a new session, even if a session is not found.\r\n\r\nI noticed this in my app when the interactionFinished method (within provider.js) threw an exception when trying to set the Location header to interaction.returnTo\r\n\r\nIf you search for a session that doesn't exist, a new session will be returned to you with no data )which means no returnTo property) causing the interactionFinished method to fail."}}
{"actor":{"display_login":"jpreese"}}