{"action":"created","issue":{"url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/138","labels_url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/138/comments","events_url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/138/events","html_url":"https://github.com/orubel/grails-api-toolkit/issues/138","id":78190950,"number":138,"title":"Token based auth","user":{"login":"orubel","id":274764,"avatar_url":"https://avatars.githubusercontent.com/u/274764?v=3","gravatar_id":"","url":"https://api.github.com/users/orubel","html_url":"https://github.com/orubel","followers_url":"https://api.github.com/users/orubel/followers","following_url":"https://api.github.com/users/orubel/following{/other_user}","gists_url":"https://api.github.com/users/orubel/gists{/gist_id}","starred_url":"https://api.github.com/users/orubel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orubel/subscriptions","organizations_url":"https://api.github.com/users/orubel/orgs","repos_url":"https://api.github.com/users/orubel/repos","events_url":"https://api.github.com/users/orubel/events{/privacy}","received_events_url":"https://api.github.com/users/orubel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-19T18:00:14Z","updated_at":"2015-05-19T19:02:52Z","closed_at":null,"body":"since we are making this headless, need to move to token based auth\r\n\r\ngrails.plugin.springsecurity.rest.login.active = true\r\ngrails.plugin.springsecurity.rest.token.storage.useGorm = true\r\ngrails.plugin.springsecurity.rest.token.storage.gorm.tokenDomainClassName = 'com.moviesxd.api.domain.AuthenticationToken'\r\ngrails.plugin.springsecurity.rest.token.storage.gorm.tokenValuePropertyName = 'tokenValue'\r\ngrails.plugin.springsecurity.rest.token.storage.gorm.usernamePropertyName = 'username'\r\n\r\ngrails.plugin.springsecurity.securityConfigType = \"Annotation\"\r\n\r\ngrails.plugin.springsecurity.rest.token.validation.enableAnonymousAccess = true\r\n\r\n//Workaround for weird responses when using a bearer token\r\ngrails.plugin.springsecurity.rest.token.validation.useBearerToken = false\r\n\r\ngrails.plugin.springsecurity.rest.login.active = true\r\ngrails.plugin.springsecurity.rest.login.endpointUrl = '/security/login'\r\ngrails.plugin.springsecurity.rest.logout.endpointUrl = '/security/logout'\r\ngrails.plugin.springsecurity.rest.login.failureStatusCode = 401\r\ngrails.plugin.springsecurity.rest.login.useJsonCredentials = true\r\ngrails.plugin.springsecurity.rest.login.usernamePropertyName = 'username'\r\ngrails.plugin.springsecurity.rest.login.passwordPropertyName = 'password'\r\ngrails.plugin.springsecurity.rest.token.validation.headerName = 'X-Auth-Token'\r\n"},"comment":{"url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/comments/103634718","html_url":"https://github.com/orubel/grails-api-toolkit/issues/138#issuecomment-103634718","issue_url":"https://api.github.com/repos/orubel/grails-api-toolkit/issues/138","id":103634718,"user":{"login":"orubel","id":274764,"avatar_url":"https://avatars.githubusercontent.com/u/274764?v=3","gravatar_id":"","url":"https://api.github.com/users/orubel","html_url":"https://github.com/orubel","followers_url":"https://api.github.com/users/orubel/followers","following_url":"https://api.github.com/users/orubel/following{/other_user}","gists_url":"https://api.github.com/users/orubel/gists{/gist_id}","starred_url":"https://api.github.com/users/orubel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orubel/subscriptions","organizations_url":"https://api.github.com/users/orubel/orgs","repos_url":"https://api.github.com/users/orubel/repos","events_url":"https://api.github.com/users/orubel/events{/privacy}","received_events_url":"https://api.github.com/users/orubel/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T19:02:52Z","updated_at":"2015-05-19T19:02:52Z","body":"Is easier for API, Oauth, REST to just use Token across servers"}}