{"action":"created","issue":{"url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/13","repository_url":"https://api.github.com/repos/jhuapl-boss/boss-oidc","labels_url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/13/comments","events_url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/13/events","html_url":"https://github.com/jhuapl-boss/boss-oidc/issues/13","id":305466356,"node_id":"MDU6SXNzdWUzMDU0NjYzNTY=","number":13,"title":"Redirect doesn't work properly","user":{"login":"Allan-Nava","id":22498435,"node_id":"MDQ6VXNlcjIyNDk4NDM1","avatar_url":"https://avatars3.githubusercontent.com/u/22498435?v=4","gravatar_id":"","url":"https://api.github.com/users/Allan-Nava","html_url":"https://github.com/Allan-Nava","followers_url":"https://api.github.com/users/Allan-Nava/followers","following_url":"https://api.github.com/users/Allan-Nava/following{/other_user}","gists_url":"https://api.github.com/users/Allan-Nava/gists{/gist_id}","starred_url":"https://api.github.com/users/Allan-Nava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Allan-Nava/subscriptions","organizations_url":"https://api.github.com/users/Allan-Nava/orgs","repos_url":"https://api.github.com/users/Allan-Nava/repos","events_url":"https://api.github.com/users/Allan-Nava/events{/privacy}","received_events_url":"https://api.github.com/users/Allan-Nava/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-15T09:06:36Z","updated_at":"2018-07-11T15:17:01Z","closed_at":null,"author_association":"NONE","body":"Hi @j6k4m8 ,\r\n\r\nWhen I login and I get this call:\r\n`\"GET /notifications/check/?_=1520963110746 HTTP/1.1\" 200 1`\r\n\r\nI redirect ->\r\n`\"GET /openid/openid/KeyCloak?next=/feeds/ HTTP/1.1\" 302 0`\r\nBut sometimes I got:\r\n`\"GET /openid/openid/KeyCloak?next=/notifications/check/?_=1520963110732 HTTP/1.1\" 302 0`\r\n\r\nI use this function:\r\n```\r\nfunction check_notifications() {\r\n    $.ajax({\r\n      url: '/notifications/check/',\r\n      cache: false,\r\n      success: function (data) {\r\n        console.log(data);\r\n        if (data != 0) {\r\n            $('#notifications').attr(\"data-notifies-count\", data);\r\n            $(\"#notifications\").addClass(\"new-notifications\");\r\n        }\r\n        else {\r\n            //console.log(data);\r\n            //$('#notifications').data(\"notifies-count\", data);\r\n            $('#notifications').attr(\"data-notifies-count\", data);\r\n            $(\"#notifications\").removeClass(\"new-notifications\");\r\n        }\r\n      },\r\n      complete: function () {\r\n        window.setTimeout(check_notifications, 50000);\r\n      }\r\n    });\r\n  };\r\n  check_notifications();\r\n```\r\n\r\nHow can I fix this problem?\r\n"},"comment":{"url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/comments/404207435","html_url":"https://github.com/jhuapl-boss/boss-oidc/issues/13#issuecomment-404207435","issue_url":"https://api.github.com/repos/jhuapl-boss/boss-oidc/issues/13","id":404207435,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDIwNzQzNQ==","user":{"login":"Allan-Nava","id":22498435,"node_id":"MDQ6VXNlcjIyNDk4NDM1","avatar_url":"https://avatars3.githubusercontent.com/u/22498435?v=4","gravatar_id":"","url":"https://api.github.com/users/Allan-Nava","html_url":"https://github.com/Allan-Nava","followers_url":"https://api.github.com/users/Allan-Nava/followers","following_url":"https://api.github.com/users/Allan-Nava/following{/other_user}","gists_url":"https://api.github.com/users/Allan-Nava/gists{/gist_id}","starred_url":"https://api.github.com/users/Allan-Nava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Allan-Nava/subscriptions","organizations_url":"https://api.github.com/users/Allan-Nava/orgs","repos_url":"https://api.github.com/users/Allan-Nava/repos","events_url":"https://api.github.com/users/Allan-Nava/events{/privacy}","received_events_url":"https://api.github.com/users/Allan-Nava/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T15:17:01Z","updated_at":"2018-07-11T15:17:01Z","author_association":"NONE","body":"I need to go automatically to registration page\n\nInviato da iPhone\n\n> Il giorno 11 lug 2018, alle ore 17:01, Derek Pryor <notifications@github.com> ha scritto:\n> \n> @Allan-Nava I'm not sure. How are you being redirected? Normally with redirect based logins the user clicks a login button / link that includes the ?next= value of the current page. Normally, like in the scenario I described, the bossoidc/djangooidc plugins don't have anything to do getting/setting the redirect page.\n> \n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n"}}
{"actor":{"display_login":"Allan-Nava"}}