downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

OAuthProvider::tokenHandler> <OAuthProvider::setRequestTokenPath
[edit] Last updated: Fri, 24 May 2013

view this page in

OAuthProvider::timestampNonceHandler

(PECL OAuth >= 1.0.0)

OAuthProvider::timestampNonceHandlerEstablece el callback timestampNonceHandler

Descripción

public void OAuthProvider::timestampNonceHandler ( callable $callback_function )

Establece el manejador callback timestamp nonce, el cual será llamado luego con OAuthProvider::callTimestampNonceHandler(). Errores relacionados con timestamp/nonce son lanzados a este callback.

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

callback_function

El nombre de la función callable.

Valores devueltos

No devuelve ningún valor.

Ejemplos

Ejemplo #1 Ejemplo de OAuthProvider::timestampNonceHandler()

<?php
function timestampNonceChecker($provider) {

    if (
$provider->nonce === 'bad') {
        return 
OAUTH_BAD_NONCE;
    } elseif (
$provider->timestamp == '0') {
        return 
OAUTH_BAD_TIMESTAMP;
    }
    
    return 
OAUTH_OK;
}
?>

Ver también



add a note add a note User Contributed Notes OAuthProvider::timestampNonceHandler - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites