The OAuthProvider class

(PECL OAuth >= 1.0.0)

Introduction

Manages an OAuth provider class.

See also an external in-depth tutorial titled » Writing an OAuth Provider Service, which takes a hands-on approach to providing this service. There are also » OAuth provider examples within the OAuth extensions sources.

Class synopsis

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
}

Table of Contents

To Top