{"action":"created","issue":{"url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/9","repository_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc","labels_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/9/comments","events_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/9/events","html_url":"https://github.com/manfredsteyer/angular-oauth2-oidc/issues/9","id":201610953,"number":9,"title":"OAuthService.logOut(true) doesn't log the user out from the identity server","user":{"login":"Sean-Brown","id":1503131,"avatar_url":"https://avatars2.githubusercontent.com/u/1503131?v=4","gravatar_id":"","url":"https://api.github.com/users/Sean-Brown","html_url":"https://github.com/Sean-Brown","followers_url":"https://api.github.com/users/Sean-Brown/followers","following_url":"https://api.github.com/users/Sean-Brown/following{/other_user}","gists_url":"https://api.github.com/users/Sean-Brown/gists{/gist_id}","starred_url":"https://api.github.com/users/Sean-Brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sean-Brown/subscriptions","organizations_url":"https://api.github.com/users/Sean-Brown/orgs","repos_url":"https://api.github.com/users/Sean-Brown/repos","events_url":"https://api.github.com/users/Sean-Brown/events{/privacy}","received_events_url":"https://api.github.com/users/Sean-Brown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-01-18T15:47:46Z","updated_at":"2018-04-10T13:14:28Z","closed_at":"2017-01-27T23:06:27Z","author_association":"NONE","body":"In short: OAuthService.logOut(true) clears the identity token from the client application but does not log the user out of the identity server itself.\r\n\r\nAngular2 application signs in to Identity Server via OIDC and is redirected back to the angular2 app. The angular2 app has a \"logout\" button which corresponds to OAuthService.logOut(). The parameter to logOut() is \"noRedirectToLogoutUrl?: boolean\" which, if true, clears the identity token from the angular2 application but not from the identity server, i.e. if the user tries to log in from the angular2 app, they are automatically signed in by the identity server and redirected back to the angular2 app. To me this is unexpected behavior: I want the user signed out of both the angular2 app AND the identity server. \r\n\r\nIf instead I call OAuthService.logOut(false) then the behavior is as expected except now the user needs to manually navigate back to the angular2 app (which I want to avoid)."},"comment":{"url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/comments/380093584","html_url":"https://github.com/manfredsteyer/angular-oauth2-oidc/issues/9#issuecomment-380093584","issue_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/9","id":380093584,"user":{"login":"dinesh210","id":12459302,"avatar_url":"https://avatars1.githubusercontent.com/u/12459302?v=4","gravatar_id":"","url":"https://api.github.com/users/dinesh210","html_url":"https://github.com/dinesh210","followers_url":"https://api.github.com/users/dinesh210/followers","following_url":"https://api.github.com/users/dinesh210/following{/other_user}","gists_url":"https://api.github.com/users/dinesh210/gists{/gist_id}","starred_url":"https://api.github.com/users/dinesh210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinesh210/subscriptions","organizations_url":"https://api.github.com/users/dinesh210/orgs","repos_url":"https://api.github.com/users/dinesh210/repos","events_url":"https://api.github.com/users/dinesh210/events{/privacy}","received_events_url":"https://api.github.com/users/dinesh210/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T13:14:28Z","updated_at":"2018-04-10T13:14:28Z","author_association":"NONE","body":"@ajitesh-techsophy \r\nI have been facing the same issue you have come across, is your issue resolved if so please can you help me how u fixed it.\r\n\r\nOne more observation from my end is if I relogin after certain time in my case 2min it asks me for credentials, any relogin before 2min after logout will automatically complete the login flow with our credentials."}}
{"actor":{"display_login":"dinesh210"}}