{"action":"opened","issue":{"url":"https://api.github.com/repos/alvarosanchez/grails-spring-security-rest/issues/203","labels_url":"https://api.github.com/repos/alvarosanchez/grails-spring-security-rest/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/alvarosanchez/grails-spring-security-rest/issues/203/comments","events_url":"https://api.github.com/repos/alvarosanchez/grails-spring-security-rest/issues/203/events","html_url":"https://github.com/alvarosanchez/grails-spring-security-rest/issues/203","id":73648500,"number":203,"title":"expires_in time seems wrong in RC4","user":{"login":"mattchanner","id":1762957,"avatar_url":"https://avatars.githubusercontent.com/u/1762957?v=3","gravatar_id":"","url":"https://api.github.com/users/mattchanner","html_url":"https://github.com/mattchanner","followers_url":"https://api.github.com/users/mattchanner/followers","following_url":"https://api.github.com/users/mattchanner/following{/other_user}","gists_url":"https://api.github.com/users/mattchanner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattchanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattchanner/subscriptions","organizations_url":"https://api.github.com/users/mattchanner/orgs","repos_url":"https://api.github.com/users/mattchanner/repos","events_url":"https://api.github.com/users/mattchanner/events{/privacy}","received_events_url":"https://api.github.com/users/mattchanner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T14:59:31Z","updated_at":"2015-05-06T14:59:31Z","closed_at":null,"body":"I have upgraded to RC4 and noticed something odd.  The expires_in JSON attribute looks like it only returns the seconds part of the expiration date delta.\r\n\r\nThis is an example taken from the debug log when I log in:\r\n\r\n2015-05-06 15:53:16,859 [http-bio-8080-exec-25] DEBUG rest.RestAuthenticationProvider  - Now is Wed May 06 15:53:16 BST 2015 and token expires at Wed May 06 16:42:36 BST 2015\r\n2015-05-06 15:53:16,859 [http-bio-8080-exec-25] DEBUG rest.RestAuthenticationProvider  - Expiration: 19\r\n\r\nThe JSON then looks like this:\r\n\r\n{\r\n   \"access_token\": \"token is here\",\r\n   \"roles\": [\r\n      \"ROLE_ADMIN\",\r\n      \"ROLE_USER\"\r\n   ],\r\n   \"token_type\": \"Bearer\",\r\n   \"expires_in\": 19,\r\n   \"username\": \"username\"\r\n}\r\n\r\nIs this a bug?\r\n\r\nThanks!\r\n\r\nMatt"}}