{"action":"created","issue":{"url":"https://api.github.com/repos/openid/AppAuth-JS/issues/8","repository_url":"https://api.github.com/repos/openid/AppAuth-JS","labels_url":"https://api.github.com/repos/openid/AppAuth-JS/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/openid/AppAuth-JS/issues/8/comments","events_url":"https://api.github.com/repos/openid/AppAuth-JS/issues/8/events","html_url":"https://github.com/openid/AppAuth-JS/issues/8","id":236303560,"number":8,"title":"AppAuth-JS in combination with WebExtensions","user":{"login":"merijndejonge","id":1928998,"avatar_url":"https://avatars3.githubusercontent.com/u/1928998?v=3","gravatar_id":"","url":"https://api.github.com/users/merijndejonge","html_url":"https://github.com/merijndejonge","followers_url":"https://api.github.com/users/merijndejonge/followers","following_url":"https://api.github.com/users/merijndejonge/following{/other_user}","gists_url":"https://api.github.com/users/merijndejonge/gists{/gist_id}","starred_url":"https://api.github.com/users/merijndejonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merijndejonge/subscriptions","organizations_url":"https://api.github.com/users/merijndejonge/orgs","repos_url":"https://api.github.com/users/merijndejonge/repos","events_url":"https://api.github.com/users/merijndejonge/events{/privacy}","received_events_url":"https://api.github.com/users/merijndejonge/received_events","type":"User","site_admin":false},"labels":[{"id":575392346,"url":"https://api.github.com/repos/openid/AppAuth-JS/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-06-15T20:22:53Z","updated_at":"2017-06-16T20:53:26Z","closed_at":null,"body":"Hi,\r\nI'm developing a web browser extension (using WebExtensions standard) in which a user needs to authenticate using openid-connect. I'm facing all sorts of issues with redirects as part of the authentication flow. The main reason is that I have to open an addition browser (popup) window where the authentication flow is executed. This is because redirects are not supported in the main popup of a browser extension. Now, several browsers will simply close the main popup window if it looses focus, which happens when the authentication window is opened :-( \r\nI tried hard to get oidc-client to do the job, but it is not satisfactory.\r\n\r\nMy question is, will AppAuth-JS help me by supporting (e.g.) the resource-owner flow, such that I can simply pass username/password to my identity provider? Or is there another preferred approach to get openid-connect authentication work in a browser extension? Are there any examples? Is someone willing to help?\r\n\r\nThanks in advance.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openid/AppAuth-JS/issues/comments/309131592","html_url":"https://github.com/openid/AppAuth-JS/issues/8#issuecomment-309131592","issue_url":"https://api.github.com/repos/openid/AppAuth-JS/issues/8","id":309131592,"user":{"login":"merijndejonge","id":1928998,"avatar_url":"https://avatars3.githubusercontent.com/u/1928998?v=3","gravatar_id":"","url":"https://api.github.com/users/merijndejonge","html_url":"https://github.com/merijndejonge","followers_url":"https://api.github.com/users/merijndejonge/followers","following_url":"https://api.github.com/users/merijndejonge/following{/other_user}","gists_url":"https://api.github.com/users/merijndejonge/gists{/gist_id}","starred_url":"https://api.github.com/users/merijndejonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merijndejonge/subscriptions","organizations_url":"https://api.github.com/users/merijndejonge/orgs","repos_url":"https://api.github.com/users/merijndejonge/repos","events_url":"https://api.github.com/users/merijndejonge/events{/privacy}","received_events_url":"https://api.github.com/users/merijndejonge/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T20:53:26Z","updated_at":"2017-06-16T20:53:26Z","body":"Thanks again for your help. Sorry if I misunderstand you. I think I understand how I can use the Intercept_HTTP_requests to get authentication tokens from the redirected url. However, I do not understand how it would help me to bypass the login screen from the identity server. In other words, how would it help me to pass username/password to the identity server?\r\n\r\nI'm not (yet) familiar with service workers + foreign fetch."}}
{"actor":{"display_login":"merijndejonge"}}