Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit a5e85c1

Browse files
committed
:octocat: $revokeURL -> protected
1 parent 9613688 commit a5e85c1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ The following public properties are available:
6969
property | description
7070
-------- | -----------
7171
`$serviceName` | the classname for the current provider
72-
`$revokeURL` | an optional URL to revoke an access token (via API)
7372
`$userRevokeURL` | an optional link to the provider's user control panel where they can revoke the current token
7473
`$apiDocs` | a link to the provider's API docs
7574
`$applicationURL` | a link to the API/application credential generation page
@@ -80,8 +79,9 @@ The following internal (protected) properties affect a provider's functionality
8079
property | description
8180
-------- | -----------
8281
`$authURL` | URL to the the provider's consent screen
83-
`$accessTokenURL` | the provider's token excahnge URL
82+
`$accessTokenURL` | the provider's token exchange URL
8483
`$apiURL` | the base URL of the provider's API to access
84+
`$revokeURL` | (optional) an URL to revoke the given access token via the provider's API
8585
`$endpointMap` | (optional) a class FQCN of an `EndpointMapInterface` for the provider's API
8686
`$authHeaders` | (optional) additional headers to use during authentication
8787
`$apiHeaders` | (optional) additional headers to use during API access

src/Core/OAuthInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* @property string $apiURL
2727
* @property string $applicationURL
2828
* @property \chillerlan\HTTP\MagicAPI\EndpointMapInterface $endpoints
29-
* @property string $revokeURL
3029
* @property string $serviceName
3130
* @property string $userRevokeURL
3231
*/

src/Core/OAuthProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@
3636
* @property string $apiURL
3737
* @property string $applicationURL
3838
* @property \chillerlan\HTTP\MagicAPI\EndpointMapInterface $endpoints
39-
* @property string $revokeURL
4039
* @property string $serviceName
4140
* @property string $userRevokeURL
4241
*/
4342
abstract class OAuthProvider implements OAuthInterface{
4443
use LoggerAwareTrait;
4544

4645
protected const ALLOWED_PROPERTIES = [
47-
'apiDocs', 'apiURL', 'applicationURL', 'endpoints', 'revokeURL', 'serviceName', 'userRevokeURL'
46+
'apiDocs', 'apiURL', 'applicationURL', 'endpoints', 'serviceName', 'userRevokeURL'
4847
];
4948

5049
/**

0 commit comments

Comments
 (0)