{"action":"created","issue":{"url":"https://api.github.com/repos/angel-dart/serialize/issues/8","repository_url":"https://api.github.com/repos/angel-dart/serialize","labels_url":"https://api.github.com/repos/angel-dart/serialize/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/angel-dart/serialize/issues/8/comments","events_url":"https://api.github.com/repos/angel-dart/serialize/issues/8/events","html_url":"https://github.com/angel-dart/serialize/issues/8","id":300866138,"number":8,"title":"Add some way to mark fields as sensitive","user":{"login":"thosakwe","id":9996860,"avatar_url":"https://avatars2.githubusercontent.com/u/9996860?v=4","gravatar_id":"","url":"https://api.github.com/users/thosakwe","html_url":"https://github.com/thosakwe","followers_url":"https://api.github.com/users/thosakwe/followers","following_url":"https://api.github.com/users/thosakwe/following{/other_user}","gists_url":"https://api.github.com/users/thosakwe/gists{/gist_id}","starred_url":"https://api.github.com/users/thosakwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thosakwe/subscriptions","organizations_url":"https://api.github.com/users/thosakwe/orgs","repos_url":"https://api.github.com/users/thosakwe/repos","events_url":"https://api.github.com/users/thosakwe/events{/privacy}","received_events_url":"https://api.github.com/users/thosakwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-28T02:20:23Z","updated_at":"2018-02-28T03:25:18Z","closed_at":null,"author_association":"OWNER","body":"i.e. `password`. This could be deserialized (i.e. from a database), but it would not be serialized via `toMap`, etc.\r\n\r\nThis way, you could use a flow like `package:angel_auth` without having to manually remove fields to prevent compromising data.\r\n\r\n```dart\r\n// Even though you could access the password in-memory, on the server,\r\n// the JSON sent down will not contain an entry for `password` at all, not even a `null`.\r\n//\r\n// It's totally silent and removes a potential attack vector.\r\nnew LocalAuthStrategy((username, password) async {\r\n  return await getUserSomehow(username, password);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/angel-dart/serialize/issues/comments/369109099","html_url":"https://github.com/angel-dart/serialize/issues/8#issuecomment-369109099","issue_url":"https://api.github.com/repos/angel-dart/serialize/issues/8","id":369109099,"user":{"login":"thosakwe","id":9996860,"avatar_url":"https://avatars2.githubusercontent.com/u/9996860?v=4","gravatar_id":"","url":"https://api.github.com/users/thosakwe","html_url":"https://github.com/thosakwe","followers_url":"https://api.github.com/users/thosakwe/followers","following_url":"https://api.github.com/users/thosakwe/following{/other_user}","gists_url":"https://api.github.com/users/thosakwe/gists{/gist_id}","starred_url":"https://api.github.com/users/thosakwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thosakwe/subscriptions","organizations_url":"https://api.github.com/users/thosakwe/orgs","repos_url":"https://api.github.com/users/thosakwe/repos","events_url":"https://api.github.com/users/thosakwe/events{/privacy}","received_events_url":"https://api.github.com/users/thosakwe/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T03:25:18Z","updated_at":"2018-02-28T03:25:18Z","author_association":"OWNER","body":"In `BuildContext` there should be two convenience methods that take a single parameter (`String fieldName`): `canSerialize` and `canDeserialize`"}}
{"actor":{"display_login":"thosakwe"}}