]> git.immae.eu Git - github/wallabag/wallabag.git/commit - app/config/security.yml
API user creation behing a toggle
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 2 Jun 2017 08:19:33 +0000 (10:19 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 2 Jun 2017 09:32:38 +0000 (11:32 +0200)
commit426bb453d295900fb3e35dce2f9081a42639cf27
tree77fc6aedf17640a9d13a817e25fbd06ab89b471f
parenta687c8d915276eee0c0494156700f7d0c0606735
API user creation behing a toggle

I've added a toggle feature (in internal settings) so that user api creation can be disabled while form registration still can be enabled.
Also, the /api/user endpoint shouldn't require authentication. Even if we check the authentication when sending a GET request, to retrieve current user information.

I've moved all the internal settings definition to config to avoid duplicated place to define them.
I don't know why we didn't did that earlier.
app/DoctrineMigrations/Version20170602075214.php [new file with mode: 0644]
app/config/config.yml
app/config/security.yml
src/Wallabag/ApiBundle/Controller/UserRestController.php
src/Wallabag/CoreBundle/Command/InstallCommand.php
src/Wallabag/CoreBundle/DataFixtures/ORM/LoadSettingData.php
src/Wallabag/CoreBundle/DependencyInjection/Configuration.php
src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php
tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php
tests/Wallabag/ApiBundle/Controller/WallabagRestControllerTest.php