{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/536","repository_url":"https://api.github.com/repos/IdentityModel/oidc-client-js","labels_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/536/comments","events_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/536/events","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/536","id":317961941,"number":536,"title":"signinSilent() does not working correctly after restarting the browser (only in IE and Firefox)","user":{"login":"lexon0011","id":16290662,"avatar_url":"https://avatars1.githubusercontent.com/u/16290662?v=4","gravatar_id":"","url":"https://api.github.com/users/lexon0011","html_url":"https://github.com/lexon0011","followers_url":"https://api.github.com/users/lexon0011/followers","following_url":"https://api.github.com/users/lexon0011/following{/other_user}","gists_url":"https://api.github.com/users/lexon0011/gists{/gist_id}","starred_url":"https://api.github.com/users/lexon0011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexon0011/subscriptions","organizations_url":"https://api.github.com/users/lexon0011/orgs","repos_url":"https://api.github.com/users/lexon0011/repos","events_url":"https://api.github.com/users/lexon0011/events{/privacy}","received_events_url":"https://api.github.com/users/lexon0011/received_events","type":"User","site_admin":false},"labels":[{"id":183005711,"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-26T10:08:14Z","updated_at":"2018-04-30T06:43:35Z","closed_at":null,"author_association":"NONE","body":"To test my oidc implementation, I configure the AccessTokenLifetime to 120 (2 minutes). After authenticating in my application, the browser refresh the access token correctly after 2 minutes. For this the browser create a request with some cookies to the IdentityProvider \r\n\r\n![refreshaccesstokenrequestwithcookies](https://user-images.githubusercontent.com/16290662/39299785-dbc2ca42-4949-11e8-9b07-6e3acb11ab39.PNG)\r\n\r\nAfter closing the Internet Explorer and restarting it later, the application calls the signinSilent() methode of the oidc-client, because the AccessToken is expired, but this doesn't work. I believe that the problem is, that the IE creates now the request without the cookies (see RefreshAccessTokenRequestWithoutCookies.PNG).\r\n\r\n![refreshaccesstokenrequestwithoutcookies](https://user-images.githubusercontent.com/16290662/39299786-dbe067fa-4949-11e8-8971-1e4ec8d4927d.PNG)\r\n\r\nIn Chrome everything works fine. Any idea what could be wrong here?"},"comment":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/comments/385322847","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/536#issuecomment-385322847","issue_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/536","id":385322847,"user":{"login":"lexon0011","id":16290662,"avatar_url":"https://avatars1.githubusercontent.com/u/16290662?v=4","gravatar_id":"","url":"https://api.github.com/users/lexon0011","html_url":"https://github.com/lexon0011","followers_url":"https://api.github.com/users/lexon0011/followers","following_url":"https://api.github.com/users/lexon0011/following{/other_user}","gists_url":"https://api.github.com/users/lexon0011/gists{/gist_id}","starred_url":"https://api.github.com/users/lexon0011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexon0011/subscriptions","organizations_url":"https://api.github.com/users/lexon0011/orgs","repos_url":"https://api.github.com/users/lexon0011/repos","events_url":"https://api.github.com/users/lexon0011/events{/privacy}","received_events_url":"https://api.github.com/users/lexon0011/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T06:43:35Z","updated_at":"2018-04-30T06:43:35Z","author_association":"NONE","body":"I found the problem and a workaround.\r\n\r\n**Problem:** I use a custom view for my IdenityServer (for developing the custom view I used [this sample](https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/CustomViewService) as template). In the [login template](https://github.com/IdentityServer/IdentityServer3.Samples/blob/master/source/CustomViewService/CustomViewService/Content/app/login.html) I remove the \"rememberMe\" checkbox, because I want to set the property always true. For this I add the following code in my [CustomViewService](https://github.com/IdentityServer/IdentityServer3.Samples/blob/master/source/CustomViewService/CustomViewService/CustomViewService.cs):\r\n\r\n```\r\npublic virtual async Task<Stream> Login(LoginViewModel model, SignInMessage message)\r\n{\r\n   model.RememberMe = true;    // set remember me always to true \r\n   var client = await this.clientStore.FindClientByIdAsync(message.ClientId);\r\n   var name = client?.ClientName;\r\n   return await this.Render(model, \"login\", name);\r\n}\r\n```\r\n\r\n**Workaround:** Because setting the rememberMe property programmatically doesn't work in all browsers, I modify the default binding. For this I add the following line code to the getModel() function in the [app.js file](https://github.com/IdentityServer/IdentityServer3.Samples/blob/master/source/CustomViewService/CustomViewService/Content/app/app.js)\r\n```\r\ngetModel: function () {\r\n   ...\r\n   model.rememberMe = true;\r\n   return model;\r\n}\r\n```\r\n\r\nNow the checkbox for rememberMe is checked as default and refreshing the access token also works after restarting the browser. \r\n\r\nSo if there is a better way to setting the rememberMe property to true as default, please tell me.\r\n\r\n"}}
{"actor":{"display_login":"lexon0011"}}