OAuthProvider 类

(PECL OAuth >= 1.0.0)

简介

管理一个 OAuth 提供者类。

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

类摘要

classOAuthProvider {
finalpublicaddRequiredParameter(string$req_params): bool
publiccheckOAuthRequest(string$uri = ?, string$method = ?): void
public__construct(array$params_array = ?)
publicconsumerHandler(callable$callback_function): void
finalpublicstaticgenerateToken(int$size, bool$strong = false): string
publicis2LeggedEndpoint(mixed$params_array): void
publicisRequestTokenEndpoint(bool$will_issue_request_token): void
finalpublicremoveRequiredParameter(string$req_params): bool
finalpublicstaticreportProblem(string$oauthexception, bool$send_headers = true): string
finalpublicsetParam(string$param_key, mixed$param_val = ?): bool
finalpublicsetRequestTokenPath(string$path): bool
publictimestampNonceHandler(callable$callback_function): void
publictokenHandler(callable$callback_function): void
}

目录

To Top