mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
|
The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5. More...
Public Member Functions | |
getName () | |
buildSignature (Request $request, Consumer $consumer, ?Token $token=null) | |
checkSignature (Request $request, Consumer $consumer, $token, $signature) | |
Protected Member Functions | |
fetchPublicCert (Request $request) | |
Up to the SP to implement this lookup of keys. | |
fetchPrivateCert (Request $request) | |
Up to the SP to implement this lookup of keys. | |
The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5.
It is assumed that the Consumer has provided its RSA public key in a verified way to the Service Provider, in a manner which is beyond the scope of this specification.
MediaWiki\OAuthClient\SignatureMethod\RsaSha1::buildSignature | ( | Request | $request, |
Consumer | $consumer, | ||
?Token | $token = null ) |
Request | $request | |
Consumer | $consumer | |
Token | null | $token |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.
MediaWiki\OAuthClient\SignatureMethod\RsaSha1::checkSignature | ( | Request | $request, |
Consumer | $consumer, | ||
$token, | |||
$signature ) |
Request | $request | |
Consumer | $consumer | |
Token | null | $token | |
string | $signature |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.
|
abstractprotected |
Up to the SP to implement this lookup of keys.
Possible ideas are: (1) do a lookup in a table of trusted certs keyed off of consumer Either way should return a string representation of the certificate
Request | $request |
|
abstractprotected |
Up to the SP to implement this lookup of keys.
Possible ideas are: (1) do a lookup in a table of trusted certs keyed off of consumer (2) fetch via http using a url provided by the requester (3) some sort of specific discovery code based on request Either way should return a string representation of the certificate
Request | $request |
MediaWiki\OAuthClient\SignatureMethod\RsaSha1::getName | ( | ) |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.