{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/4329","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/4329/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/4329/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/4329/events","html_url":"https://github.com/storybooks/storybook/issues/4329","id":368195757,"node_id":"MDU6SXNzdWUzNjgxOTU3NTc=","number":4329,"title":"How to intercept call to manager with custom script?","user":{"login":"FaresAbu-Khiarah","id":26465468,"node_id":"MDQ6VXNlcjI2NDY1NDY4","avatar_url":"https://avatars3.githubusercontent.com/u/26465468?v=4","gravatar_id":"","url":"https://api.github.com/users/FaresAbu-Khiarah","html_url":"https://github.com/FaresAbu-Khiarah","followers_url":"https://api.github.com/users/FaresAbu-Khiarah/followers","following_url":"https://api.github.com/users/FaresAbu-Khiarah/following{/other_user}","gists_url":"https://api.github.com/users/FaresAbu-Khiarah/gists{/gist_id}","starred_url":"https://api.github.com/users/FaresAbu-Khiarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FaresAbu-Khiarah/subscriptions","organizations_url":"https://api.github.com/users/FaresAbu-Khiarah/orgs","repos_url":"https://api.github.com/users/FaresAbu-Khiarah/repos","events_url":"https://api.github.com/users/FaresAbu-Khiarah/events{/privacy}","received_events_url":"https://api.github.com/users/FaresAbu-Khiarah/received_events","type":"User","site_admin":false},"labels":[{"id":571245712,"node_id":"MDU6TGFiZWw1NzEyNDU3MTI=","url":"https://api.github.com/repos/storybooks/storybook/labels/compatibility%20with%20other%20tools","name":"compatibility with other tools","color":"F1951D","default":false},{"id":343576459,"node_id":"MDU6TGFiZWwzNDM1NzY0NTk=","url":"https://api.github.com/repos/storybooks/storybook/labels/question%20/%20support","name":"question / support","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-09T12:54:07Z","updated_at":"2018-10-10T14:44:04Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nI am trying to secure our storybook with a login, using keycloak-js and react. Therefore I need to intercept any calls to the manager.\r\n\r\nI attempted to write a Full Mode(extend) webpack.config.js like so\r\n```\r\nconst path = require('path');\r\nmodule.exports = (baseConfig, env, defaultConfig) => {\r\n  // Extend storybook defaultConfig\r\n  defaultConfig.entry.manager.push(path.resolve(__dirname, '../src/login.jsx'));\r\n  return defaultConfig;\r\n};\r\n```\r\nUnfortunately this did not work for me and it also does not include keycloak's iframe. I also tried the manager-head.html - way. The problem with that is, that keycloak expects its own iframe to be loaded into the body at this point. \r\n\r\nDoes anyone know a workaround for my problem, that does not include maintaining an own fork or any major hacking :)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/428600129","html_url":"https://github.com/storybooks/storybook/issues/4329#issuecomment-428600129","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/4329","id":428600129,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODYwMDEyOQ==","user":{"login":"igor-dv","id":7867954,"node_id":"MDQ6VXNlcjc4Njc5NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7867954?v=4","gravatar_id":"","url":"https://api.github.com/users/igor-dv","html_url":"https://github.com/igor-dv","followers_url":"https://api.github.com/users/igor-dv/followers","following_url":"https://api.github.com/users/igor-dv/following{/other_user}","gists_url":"https://api.github.com/users/igor-dv/gists{/gist_id}","starred_url":"https://api.github.com/users/igor-dv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor-dv/subscriptions","organizations_url":"https://api.github.com/users/igor-dv/orgs","repos_url":"https://api.github.com/users/igor-dv/repos","events_url":"https://api.github.com/users/igor-dv/events{/privacy}","received_events_url":"https://api.github.com/users/igor-dv/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T14:44:04Z","updated_at":"2018-10-10T14:44:04Z","author_association":"MEMBER","body":"Did you find what causes to the refresh loop?"}}
{"actor":{"display_login":"igor-dv"}}