![]() |
|
twAdminGuardPlugin - 1.0.0Integration of twAdminPlugin with sfGuardPlugin |
|
![]() |
0
user
Sign-in
to change your status |
Integration of twAdminPlugin with sfGuardPlugin |
Integration of twAdminPlugin with sfGuardPlugin
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> izdoluta |
Copyright (c) 2012 ARUKOMP Arkadiusz Tułodziecki
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 1.0.0stable | MIT license | 1.0.0stable | 19/07/2012 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.0stable | MIT license | 1.0.0stable | 19/07/2012 |
| Name | Channel | Version |
|---|---|---|
| sfGuardAuthPlugin | pear.symfony-project.com | 4.0.0-5.0.0 |
| twAdminPlugin | pear.symfony-project.com | 1.1.0-1.2.0 |
Integration of twAdminPlugin with sfGuardPlugin
Install and configure sfGuardPlugin
Install and configure twAdminPlugin
To secure a symfony application:
Enable the module twGuardAuth in settings.yml
all:
.settings:
enabled_modules: [..., twGuardAuth]Change the default login and secure modules in settings.yml
login_module: twGuardAuth login_action: signin secure_module: twGuardAuth secure_action: secure
Optionally add the following routing rules to routing.yml
sf_guard_signin:
url: /login
param: { module: twGuardAuth, action: signin }
sf_guard_signout:
url: /logout
param: { module: twGuardAuth, action: signout }
sf_guard_password:
url: /request_password
param: { module: twGuardAuth, action: password }
You can customize the url parameter of each route.
N.B.: You must have a @homepage routing rule (used when a user sign out)
These routes are automatically registered by the plugin if the module sfGuardAuth
is enabled unless you defined tw_admin_guard_plugin_routes_register to false
in the app.yml configuration file:
all:
tw_admin_guard_plugin:
routes_register: falseSecure some modules or your entire application in security.yml
default: is_secure: on
You're done. Now, if you try to access a secure page, you will be redirected
to the login page.
If you have loaded the default fixture file, try to login with admin as
username and admin as password.
To be able to manage your users, permissions and groups, sfGuardPlugin comes
with 3 modules that can be integrated in your backend application.
These modules are auto-generated thanks to the symfony admin generator.
Enable the modules in settings.yml
all:
.settings:
enabled_modules: [..., twAdmin]Access the modules with the default route:
http://www.example.com/backend.php/tw_guard_user
Rest is the same like in sfGuardPlugin Documentation
