payload: {"push_id":3427473854,"size":2,"distinct_size":1,"ref":"refs/heads/update-readme","head":"ac53f0588e35dbd1796bd7a8786b600524128ad4","before":"4172cda0fa32f549f7d547a35353237e3813ce5a","commits":[{"sha":"b5d1245ba22fe81da8e1db07ac9b3b6507b9f546","author":{"name":"Sébastien Cottinet","email":"42f87672bcd084f09d37ef45298251592322f3d4@protonmail.com"},"message":"Fix the \"IsAuthenticated\" assertion (#1267)\n\nThe auth controller heavily uses the assertIsAuthenticated function to make sure that one is not trying to add credentials or things like that with the anonymous user (because anonymous is a virtual user without any storage dedicated to it).\r\n\r\nThat assertion is broken since the anonymous() method from the user repository returns a promise object.\r\n\r\nThis PR repairs the assertion by asking the function calling it to provide the anonymous user identifier, ensuring that that assertion stays synchronous (as all assert methods should).\r\nAnd the auth controller fetches the anonymous user identifier once, during a new init method that controllers can now have thanks to the work done in #1266.\r\n\r\n* [fix] make controllers actions exposure explicit to prevent leakage\r\n* [test fix] prevent mockrequire leak and fix randomly failing test\r\n* [test] add unit tests for the new base controller\r\n* [tests (+fix)] test the new isAction controllers method\r\n* [api] expose missing API methods\r\n* [fix] repair the \"IsAuthenticated\" assertion\r\n* [janitoring] DRYify code\r\n* [fix] merge mishap -_-","distinct":false,"url":"https://api.github.com/repos/kuzzleio/kuzzle/commits/b5d1245ba22fe81da8e1db07ac9b3b6507b9f546"},{"sha":"ac53f0588e35dbd1796bd7a8786b600524128ad4","author":{"name":"Sébastien Cottinet","email":"42f87672bcd084f09d37ef45298251592322f3d4@protonmail.com"},"message":"Merge branch '1-dev' into update-readme","distinct":true,"url":"https://api.github.com/repos/kuzzleio/kuzzle/commits/ac53f0588e35dbd1796bd7a8786b600524128ad4"}]}
other: {"actor":{"display_login":"scottinet"}}