{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1750","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1750/labels{/name}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1750/comments","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1750/events","html_url":"https://github.com/OpenSlides/OpenSlides/issues/1750","id":121028170,"number":1750,"title":"Proposal: New login page before loading Angular site","user":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels/system","name":"system","color":"444444"},{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels/user","name":"user","color":"444444"}],"state":"open","locked":false,"assignee":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/23","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.0b2","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/23/labels","id":1407198,"number":23,"title":"2.0b2","description":"","creator":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":15,"state":"open","created_at":"2015-11-11T19:16:43Z","updated_at":"2015-12-11T14:47:45Z","due_on":"2016-01-17T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-08T15:17:00Z","updated_at":"2015-12-11T14:54:26Z","closed_at":null,"body":"What do you think about creating a general login page which will be shown before the user can enter OpenSlides at all. We can use a standard Django view without AngularJS and this stuff. The advantage would be that we could clearly manage the first data fetching after login (just the first loading of AngularJS) and we can avoid a lot of useless HTTP requests. At the moment the first start generates 12 requests that get HTTP 403.\r\n\r\n# Case 1: Guest disabled\r\n- If anonymous user calls any url he gets the login view. We can solve this with a middleware or a smart filter in IndexView and optionally ProjectorView class.\r\n- If a registered user calls an url he gets AngularJS just as in 2.0b1.\r\n- In the top navigation bar there is no Login dialog but only a logout button. If the user clicks this, he posts the logout request and we force a full reload of the page.\r\n\r\n# Case 2: Guest enabled\r\n- Any user who calls an url gets AngularJS just as in 2.0b1.\r\n- In the top navigation bar there is also a login button and dialog (but without the button \"continue as guest\", this is not neccesary any more). The client may force reload after login."},"comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments/163955430","html_url":"https://github.com/OpenSlides/OpenSlides/issues/1750#issuecomment-163955430","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1750","id":163955430,"user":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T14:54:26Z","updated_at":"2015-12-11T14:54:26Z","body":"Still open:\r\n- Closing Login Model should not be possible if guest users are disabled.\r\n- If Guest is enabled: Open new page/tab, click continue as guest, then click login -> the continue as guest button is missing."}}