mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
Loading...
Searching...
No Matches
MediaWiki\OAuthClient\ClientConfig Class Reference

MediaWiki OAuth client configuration. More...

Public Member Functions

 __construct ( $url, $verifySSL=true)
 
 setRedirUrl ( $redirURL)
 
 setConsumer (Consumer $consumer)
 
 setUserAgent (?string $userAgent)
 
 setAuthenticateOnly (bool $authenticateOnly)
 

Public Attributes

 $endpointURL
 
 $canonicalServerUrl
 
 $redirURL = null
 
 $useSSL
 
 $verifySSL
 
 $consumer = null
 
 $userAgent = null
 
 $authenticateOnly = false
 

Detailed Description

MediaWiki OAuth client configuration.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\OAuthClient\ClientConfig::__construct ( $url,
$verifySSL = true )
Parameters
string$urlOAuth endpoint URL
bool$verifySSL

Member Function Documentation

◆ setAuthenticateOnly()

MediaWiki\OAuthClient\ClientConfig::setAuthenticateOnly ( bool $authenticateOnly)
Parameters
bool$authenticateOnly
Returns
void

◆ setConsumer()

MediaWiki\OAuthClient\ClientConfig::setConsumer ( Consumer $consumer)
Parameters
Consumer$consumer
Returns
ClientConfig Self, for method chaining

◆ setRedirUrl()

MediaWiki\OAuthClient\ClientConfig::setRedirUrl ( $redirURL)
Parameters
string$redirURL
Returns
ClientConfig Self, for method chaining

◆ setUserAgent()

MediaWiki\OAuthClient\ClientConfig::setUserAgent ( ?string $userAgent)
Parameters
string | null$userAgent
Returns
void

The documentation for this class was generated from the following file: