略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: OAuthProvider

2024-12-22

OAuthProvider 类

(PECL OAuth >= 1.0.0)

简介

管理一个 OAuth 提供者类。

参考一个外部的深入教程 » 写一个 OAuth 提供者服务,用来亲自实践提供服务。也可以参考 OAuth 扩展源代码里的 » OAuth 提供者例子

类摘要

class OAuthProvider {
/* 方法 */
final public addRequiredParameter(string $req_params): bool
public callconsumerHandler(): void
public calltokenHandler(): void
public checkOAuthRequest(string $uri = ?, string $method = ?): void
public __construct(array $params_array = ?)
public consumerHandler(callable $callback_function): void
final public static generateToken(int $size, bool $strong = false): string
public is2LeggedEndpoint(mixed $params_array): void
public isRequestTokenEndpoint(bool $will_issue_request_token): void
final public removeRequiredParameter(string $req_params): bool
final public static reportProblem(string $oauthexception, bool $send_headers = true): string
final public setParam(string $param_key, mixed $param_val = ?): bool
final public setRequestTokenPath(string $path): bool
public timestampNonceHandler(callable $callback_function): void
public tokenHandler(callable $callback_function): void
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.oauthprovider.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3