<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Beutelevision - Latest Comments in A short blurb on using sfGuardPlugin credentials</title><link>http://beutelevision.disqus.com/</link><description>Blog by Thomas Beutel</description><atom:link href="https://beutelevision.disqus.com/a_short_blurb_on_using_sfguardplugin_credentials/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 22 Aug 2012 06:02:33 -0000</lastBuildDate><item><title>Re: A short blurb on using sfGuardPlugin credentials</title><link>https://beutelevision.com/blog2/2009/08/20/a-short-blurb-on-using-sfguardplugin-credentials/#comment-625561746</link><description>&lt;p&gt;Sorry, but I still didn't quite get the difference between credentials and permissions. They both are one string/identifier limiting access to a resource. Am I right? So as far as words are concerned, they can be used interchangeably, maybe as far as concepts are concerned they differ, as belonging to different contexts (sfBasicSecurity, and sfBasicSecurity respectively).&lt;br&gt;I'm not sure if I explained clearly my point.&lt;br&gt;As always, an example would surely clarify on this issue... would you be so kind to provide one? As this is also a foggy issue for me...&lt;br&gt;Thanks in advance&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Catalin</dc:creator><pubDate>Wed, 22 Aug 2012 06:02:33 -0000</pubDate></item><item><title>Re: A short blurb on using sfGuardPlugin credentials</title><link>https://beutelevision.com/blog2/2009/08/20/a-short-blurb-on-using-sfguardplugin-credentials/#comment-585601908</link><description>&lt;p&gt;credentials are from sfBasicSecurity user&lt;/p&gt;&lt;p&gt;permissions are from sfGuardPlugin&lt;/p&gt;&lt;p&gt;permissions and credentials are NOT interchangeable at all UNLESS you overwrite hasCredential in myUser.class.php&lt;/p&gt;&lt;p&gt;class myUser extends sfGuardSecurityUser&lt;br&gt;{&lt;br&gt;   public function hasCredential($credential, $useAnd = true) {&lt;br&gt;    if ($p = parent::hasCredential($credential, $useAnd)) { return $p;}     &lt;br&gt;    if (is_string($credential) &amp;amp;&amp;amp; ($p = parent::hasPermission($credential))) { return $p;};&lt;br&gt;    return $p;&lt;br&gt;  }&lt;br&gt;}hasCredential is passing all kinds of arrays arround and is iteratively calling itself ... when it is a string we also check hasPermission&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Severin</dc:creator><pubDate>Thu, 12 Jul 2012 07:57:45 -0000</pubDate></item><item><title>Re: A short blurb on using sfGuardPlugin credentials</title><link>https://beutelevision.com/blog2/2009/08/20/a-short-blurb-on-using-sfguardplugin-credentials/#comment-289436611</link><description>&lt;p&gt;thank u!!&lt;/p&gt;&lt;p&gt;I have 2 Tips: &lt;/p&gt;&lt;p&gt;1) for get the sfGuardUser on the Action:&lt;br&gt;     $user = $this-&amp;gt;getUser()-&amp;gt;getGuardUser();&lt;br&gt;2) and on the Layout:&lt;br&gt;     $user = $sf_user-&amp;gt;getGuardUser();&lt;/p&gt;&lt;p&gt;This is most powerful and we can return a Doctrine-Object with all his relationships&lt;/p&gt;&lt;p&gt;, Best!! ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">acidventure</dc:creator><pubDate>Wed, 17 Aug 2011 15:19:49 -0000</pubDate></item><item><title>Re: A short blurb on using sfGuardPlugin credentials</title><link>https://beutelevision.com/blog2/2009/08/20/a-short-blurb-on-using-sfguardplugin-credentials/#comment-24770934</link><description>&lt;p&gt;thanks that's the poin I missed in SF doc &amp;amp; tutorials&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benoit</dc:creator><pubDate>Fri, 04 Dec 2009 05:27:22 -0000</pubDate></item><item><title>Re: A short blurb on using sfGuardPlugin credentials</title><link>https://beutelevision.com/blog2/2009/08/20/a-short-blurb-on-using-sfguardplugin-credentials/#comment-18616328</link><description>&lt;p&gt;test&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 05 Oct 2009 21:47:02 -0000</pubDate></item></channel></rss>