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\SignatureMethod\Plaintext Class Reference

The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS. More...

+ Inheritance diagram for MediaWiki\OAuthClient\SignatureMethod\Plaintext:
+ Collaboration diagram for MediaWiki\OAuthClient\SignatureMethod\Plaintext:

Public Member Functions

 getName ()
 
 buildSignature (Request $request, Consumer $consumer, Token $token=null)
 oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty.
 
- Public Member Functions inherited from MediaWiki\OAuthClient\SignatureMethod
 checkSignature (Request $request, Consumer $consumer, $token, $signature)
 Verifies that a given signature is correct.
 

Detailed Description

The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS.

It does not use the Signature Base String.

  • Chapter 9.4 ("PLAINTEXT")

Member Function Documentation

◆ buildSignature()

MediaWiki\OAuthClient\SignatureMethod\Plaintext::buildSignature ( Request  $request,
Consumer  $consumer,
Token  $token = null 
)

oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty.

The result MUST be encoded again.

  • Chapter 9.4.1 ("Generating Signatures")

Please note that the second encoding MUST NOT happen in the SignatureMethod, as Request handles this!

Parameters
Request$request
Consumer$consumer
Token | null$token
Returns
string

Reimplemented from MediaWiki\OAuthClient\SignatureMethod.

◆ getName()

MediaWiki\OAuthClient\SignatureMethod\Plaintext::getName ( )
Returns
string

Reimplemented from MediaWiki\OAuthClient\SignatureMethod.


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