Skip to content

Minimal setup of FOSUserBundle, SonatAdminBundle, SonataUserBundle and HWIOAuthBundle

License

Notifications You must be signed in to change notification settings

m2mdas/MinimalSecurityBundlesSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symofony Minimal Security Bundles Setup

This is minimal Symfony2.3 setup with FOSUserBundle, SonataAdminBundle, SonataUserBundle and HWIOAuthBundle configured. This setup combines codes from this post and this post.

  1. Setup

Clone the repository and issue composer install command,

php composer.phar install --prefer-dist

Create tables,

php app/console doctrine:schema:update --force

In hwi_oauth section of app/config/config.yml file add client_id and client_secret infos of resources you want to setup. Also uncomment your required resource_owners section in app/config/security.yml. After configuration go to /security_area/hello/world url of the site.

To setup admin create admin user first,

php app/console fos:user:create adminuser
php app/console fos:user:promote adminuser ROLE_ADMIN

Then go to /admin/dashboard of the site.

About

Minimal setup of FOSUserBundle, SonatAdminBundle, SonataUserBundle and HWIOAuthBundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published