{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/501","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/501/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/501/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/501","id":127506910,"number":501,"title":"Unpermitted parameters: confirm_success_url, config_name, registration","user":{"login":"stephanngamedev","id":3025661,"avatar_url":"https://avatars.githubusercontent.com/u/3025661?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanngamedev","html_url":"https://github.com/stephanngamedev","followers_url":"https://api.github.com/users/stephanngamedev/followers","following_url":"https://api.github.com/users/stephanngamedev/following{/other_user}","gists_url":"https://api.github.com/users/stephanngamedev/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanngamedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanngamedev/subscriptions","organizations_url":"https://api.github.com/users/stephanngamedev/orgs","repos_url":"https://api.github.com/users/stephanngamedev/repos","events_url":"https://api.github.com/users/stephanngamedev/events{/privacy}","received_events_url":"https://api.github.com/users/stephanngamedev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T18:20:19Z","updated_at":"2016-01-19T18:52:31Z","closed_at":"2016-01-19T18:52:31Z","body":"I'm using `devise_token_auth` and `ng-token-auth`\r\n\r\nError:\r\n```\r\nStarted POST \"/auth\" for ::1 at 2016-01-19 15:04:04 -0300\r\nProcessing by DeviseTokenAuth::RegistrationsController#create as HTML\r\n  Parameters: {\"password\"=>\"[FILTERED]\", \"cpf\"=>\"xxxxxxxxx\", \"confirm_success_url\"=>\"http://172.16.0.234:8100/#/sign-up\", \"config_name\"=>\"default\", \"registration\"=>{\"password\"=>\"[FILTERED]\", \"cpf\"=>\"xxxxxxxxx\", \"confirm_success_url\"=>\"http://172.16.0.234:8100/#/sign-up\", \"config_name\"=>\"default\"}}\r\nCan't verify CSRF token authenticity\r\nUnpermitted parameters: confirm_success_url, config_name, registration\r\nUnpermitted parameters: confirm_success_url, config_name, registration\r\nUnpermitted parameters: confirm_success_url, config_name, registration\r\n(0.3ms)  BEGIN\r\n   (0.7ms)  SELECT COUNT(*) FROM \"clientes\" WHERE \"clientes\".\"provider\" = $1 AND \"clientes\".\"email\" IS NULL  [[\"provider\", \"email\"]]\r\n   (0.3ms)  ROLLBACK\r\nCompleted 403 Forbidden in 112ms (Views: 0.6ms | ActiveRecord: 5.2ms)\r\n```\r\nMy ApplicationController\r\n```ruby\r\n...\r\nbefore_action :configure_permitted_parameters, if: :devise_controller?\r\n\r\nprotected\r\n\r\ndef configure_permitted_parameters\r\n\tdevise_parameter_sanitizer.for(:sign_up) << [:name, :cpf ]\r\nend\r\n...\r\n```\r\nmy angular controller\r\n```javascript\r\nfunction signUp( cliente ) {\r\n\t$auth.submitRegistration({\r\n\t\temail: cliente.email,\r\n\t\tpassword: cliente.password,\r\n\t\tpassword_confirmation: cliente.passwordConfirmation,\r\n\t\tname: cliente.name,\r\n\t\tcpf: cliente.cpf,\r\n\t}).then( signUpSucess ).catch( signUpError );\r\n};\r\n```\r\nmy form\r\n```html\r\n<form ng-submit=\"signUp(cliente)\" role=\"form\" ng-init=\"cliente = {}\">\r\n\t<div class=\"list\">\r\n\t\t<label class=\"item item-input item-floating-label\">\r\n\t\t\t<span class=\"input-label\">Email</span>\r\n\t\t\t<input type=\"email\" name=\"email\" placeholder=\"Email\" ng-model=\"cliente.model\" required=\"required\">\r\n\t\t</label>\r\n\r\n\t\t<label class=\"item item-input item-floating-label\">\r\n\t\t\t<span class=\"input-label\">CPF</span>\r\n\t\t\t<input type=\"text\" name=\"cpf\" placeholder=\"CPF\" ng-model=\"cliente.cpf\" required=\"required\">\r\n\t\t</label>\r\n\r\n\t\t<label class=\"item item-input item-floating-label\">\r\n\t\t\t<span class=\"input-label\">Nome</span>\r\n\t\t\t<input type=\"text\" name=\"nome\" placeholder=\"Nome\" ng-model=\"cliente.nome\" required=\"required\">\r\n\t\t</label>\r\n\r\n\t\t<label class=\"item item-input item-floating-label\">\r\n\t\t\t<span class=\"input-label\">Senha</span>\r\n\t\t\t<input type=\"password\" name=\"password\" placeholder=\"Senha\" ng-model=\"cliente.password\" required=\"required\">\r\n\t\t</label>\r\n\r\n\t\t<label class=\"item item-input item-floating-label\">\r\n\t\t\t<span class=\"input-label\">Confirmação de Senha</span>\r\n\t\t\t<input type=\"password\" name=\"password_confirmation\" placeholder=\"Confirmação de Senha\" ng-model=\"cliente.password_confirmation\" required=\"required\">\r\n\t\t</label>\r\n\t</div>\r\n\r\n\t<button class=\"button button-block button-positive activated\">Cadastrar-se</button>\r\n</form>\r\n```\r\n\r\nWhen I add `confirm_success_url`, `config_name`, `registration` to permitted params, I got this error: \r\n```\r\nActiveRecord::UnknownAttributeError (unknown attribute 'confirm_success_url' for Cliente.):\r\n```\r\n\r\nI'm using:\r\n```devise_token_auth (0.1.36)```\r\n```ng-token-auth (0.0.28)```"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/172949897","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/501#issuecomment-172949897","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/501","id":172949897,"user":{"login":"stephanngamedev","id":3025661,"avatar_url":"https://avatars.githubusercontent.com/u/3025661?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanngamedev","html_url":"https://github.com/stephanngamedev","followers_url":"https://api.github.com/users/stephanngamedev/followers","following_url":"https://api.github.com/users/stephanngamedev/following{/other_user}","gists_url":"https://api.github.com/users/stephanngamedev/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanngamedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanngamedev/subscriptions","organizations_url":"https://api.github.com/users/stephanngamedev/orgs","repos_url":"https://api.github.com/users/stephanngamedev/repos","events_url":"https://api.github.com/users/stephanngamedev/events{/privacy}","received_events_url":"https://api.github.com/users/stephanngamedev/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T18:52:31Z","updated_at":"2016-01-19T18:52:31Z","body":"I find my error:\r\n```ng-model=\"cliente.model\"```\r\nis supposed to be\r\n```ng-model=\"cliente.email\"```\r\n\r\nSorry"}}