php Auth_OpenID_getSessionTypes类(方法)实例源码

下面列出了php Auth_OpenID_getSessionTypes 类(方法)源码代码实例,从而了解它的用法。

作者:hilkero    项目:MMM-php-cak   
function isAllowed($assoc_type, $session_type)
 {
     $assoc_good = in_array(array($assoc_type, $session_type), $this->allowed_types);
     $matches = in_array($session_type, Auth_OpenID_getSessionTypes($assoc_type));
     return $assoc_good && $matches;
 }

作者:openi    项目:php-openi   
function testAddAllowedTypeContents()
 {
     $assoc_type = 'HMAC-SHA1';
     $this->assertTrue($this->n->addAllowedType($assoc_type));
     foreach (Auth_OpenID_getSessionTypes($assoc_type) as $typ) {
         $this->assertTrue(in_array(array($assoc_type, $typ), $this->n->allowed_types));
     }
 }


问题


面经


文章

微信
公众号

扫码关注公众号