<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blonko! &#187; framework</title>
	<atom:link href="http://www.wonko.be/tag/framework/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wonko.be</link>
	<description>Blog + Wonko = Blonko!</description>
	<lastBuildDate>Mon, 16 Aug 2010 18:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>symfony, sfGuardPlugin and security.yml</title>
		<link>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml</link>
		<comments>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml#comments</comments>
		<pubDate>Wed, 12 Dec 2007 16:43:21 +0000</pubDate>
		<dc:creator>blonko</dc:creator>
				<category><![CDATA[blonko]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sfguard]]></category>
		<category><![CDATA[sfguardplugin]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml/</guid>
		<description><![CDATA[I&#8217;ve been playing with symfony lately, and installed the sfGuard plugin to get a better control over the groups and the users. After the usual problems, for which the solutions are found easily using Google, one issue remained unsolved for a while, while the solution was simple and straightforward: Each module in your application can [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.wonko.be/wp-content/uploads/2007/12/picture-7.png' title='User management in sfGuardPlugin'><img src='http://www.wonko.be/wp-content/uploads/2007/12/picture-7.thumbnail.png' alt='User management in sfGuardPlugin' class="left" /></a>I&#8217;ve been playing with <a href="http://www.symfony-project.org/">symfony</a> lately, and installed <a href="http://trac.symfony-project.com/wiki/sfGuardPlugin">the sfGuard plugin</a> to get a better control over the groups and the users. After the usual problems, for which the solutions are found easily using Google, one issue remained unsolved for a while, while the solution was simple and straightforward: </p>
<p>Each module in your application can be protected through the use of the security.yml files. In the top-level security.yml file, I included the following (it was a backend application, so access should be restricted, when in doubt):</p>

<div class="wp_syntax"><div class="code"><pre class="yml" style="font-family:monospace;">default:
  is_secure: on</pre></div></div>

<p>Now, if you want to protect a module, apparently, it doesn&#8217;t work to include this in your main config:</p>

<div class="wp_syntax"><div class="code"><pre class="yaml" style="font-family:monospace;">default:
  is_secure: on
&nbsp;
module1:
  credentials: admin</pre></div></div>

<p>However, when including this in your module1/config/security.yml file, it works (the &#8216;all&#8217; concerns the actions within this module):</p>

<div class="wp_syntax"><div class="code"><pre class="yaml" style="font-family:monospace;">all:
    is_secure: on
    credentials: admin</pre></div></div>

<p>I assume the &#8216;is_secure: on&#8217; might be omitted, as the default is set to on. It somehow bothers me to see that it is not possible to include this in the application-level security file, covering all the modules actions at once.</p>
<p>Four important notes when you encounter problems:<img src='http://www.wonko.be/wp-content/uploads/2007/12/picture-6.png' alt='picture-6.png' class="right" /></p>
<ul>
<li>The names listed as the credentials are the names you&#8217;ve given to your permissions! Seems logical, but try not to change them to much, as you might break access to certain parts of your site.</li>
<li>The permissions assigned to the groups are granted to the users, and the permissions listed below the users are added when checked.</li>
<li>When you change your own credentials, make sure to log out and log in again!</li>
<li>And finally, control the access to the plugins sfGuardUsers, sfGuardGroups, sfGuardPermissions the same way as other modules, by changing the security.yml files in the plugins/sfGuardPlugin/modules/&#8230;/config/security.yml files. Don&#8217;t change the access to the sfGuardAuth module, as it needs to be accessible by anyone to be able to login (see picture).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
<!--f0c25b539901624b460e129d15264305-->
