AP_OP_StoreRequest::createStoreRequest PHP Метод

createStoreRequest() статический публичный Метод

Creates store request and adds it as an extension to AuthRequest object passed to it.
static public createStoreRequest ( &$auth_request, &$attributeProvider, string $attribute, string $value, string $openid ) : &Auth_OpenID_AuthRequest
$attribute string - The attribute name being asserted.
$value string - The attribute value being asserted.
$openid string - Openid of the entity being asserted.
Результат &Auth_OpenID_AuthRequest
    static function createStoreRequest(&$auth_request, &$attributeProvider, $attribute, $value, $openid)
    {
        if (!$auth_request) {
            return null;
        }
        $signedAssertion = $attributeProvider->sign($openid, $attribute, $value);
        $store_request = new Auth_OpenID_AX_StoreRequest();
        $store_request->addValue($attribute, base64_encode($value));
        $store_request->addValue($attribute . '/signature', base64_encode($signedAssertion));
        if ($store_request) {
            $auth_request->addExtension($store_request);
            return $auth_request;
        }
    }
AP_OP_StoreRequest