Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 536b6fd

Browse files
author
Dave Rochwerger
committed
Formatting changes - mainly 2 spaces -> tabs
1 parent 6ceb173 commit 536b6fd

23 files changed

+2480
-2581
lines changed

lib/IOAuth2GrantClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that support the "Client Credentials"
45
* grant type should implement this interface
@@ -7,8 +8,8 @@
78
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.4
89
*/
910
interface IOAuth2GrantClient extends IOAuth2Storage {
10-
11-
/**
11+
12+
/**
1213
* Required for OAuth2::GRANT_TYPE_CLIENT_CREDENTIALS.
1314
*
1415
* @param $client_id

lib/IOAuth2GrantCode.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that support the "Authorization Code"
45
* grant type should implement this interface
@@ -7,17 +8,17 @@
78
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.1
89
*/
910
interface IOAuth2GrantCode extends IOAuth2Storage {
10-
11-
/**
12-
* The Authorization Code grant type supports a response type of "code".
13-
*
14-
* @var string
15-
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.1
16-
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2
17-
*/
18-
const RESPONSE_TYPE_CODE = OAuth2::RESPONSE_TYPE_AUTH_CODE;
19-
20-
/**
11+
12+
/**
13+
* The Authorization Code grant type supports a response type of "code".
14+
*
15+
* @var string
16+
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.1
17+
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2
18+
*/
19+
const RESPONSE_TYPE_CODE = OAuth2::RESPONSE_TYPE_AUTH_CODE;
20+
21+
/**
2122
* Fetch authorization code data (probably the most common grant type).
2223
*
2324
* Retrieve the stored data for the given authorization code.
@@ -67,5 +68,5 @@ public function getAuthCode($code);
6768
* @ingroup oauth2_section_4
6869
*/
6970
public function setAuthCode($code, $client_id, $user_id, $redirect_uri, $expires, $scope = NULL);
70-
71+
7172
}

lib/IOAuth2GrantExtension.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that support the "Extensible"
45
* grant types should implement this interface
@@ -7,8 +8,8 @@
78
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.5
89
*/
910
interface IOAuth2GrantExtension extends IOAuth2Storage {
10-
11-
/**
11+
12+
/**
1213
* Check any extended grant types.
1314
*
1415
* @param string $uri

lib/IOAuth2GrantImplicit.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that support the "Implicit"
45
* grant type should implement this interface
@@ -7,13 +8,13 @@
78
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2
89
*/
910
interface IOAuth2GrantImplicit extends IOAuth2Storage {
10-
11-
/**
12-
* The Implicit grant type supports a response type of "token".
13-
*
14-
* @var string
15-
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.2
16-
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2
17-
*/
18-
const RESPONSE_TYPE_TOKEN = OAuth2::RESPONSE_TYPE_ACCESS_TOKEN;
11+
12+
/**
13+
* The Implicit grant type supports a response type of "token".
14+
*
15+
* @var string
16+
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.2
17+
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2
18+
*/
19+
const RESPONSE_TYPE_TOKEN = OAuth2::RESPONSE_TYPE_ACCESS_TOKEN;
1920
}

lib/IOAuth2GrantUser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that support the "Resource Owner Password Credentials"
45
* grant type should implement this interface
@@ -8,7 +9,7 @@
89
*/
910
interface IOAuth2GrantUser extends IOAuth2Storage {
1011

11-
/**
12+
/**
1213
* Grant access tokens for basic user credentials.
1314
*
1415
* Check the supplied username and password for validity.

lib/IOAuth2RefreshTokens.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Storage engines that want to support refresh tokens should
45
* implement this interface.
@@ -8,8 +9,8 @@
89
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.5
910
*/
1011
interface IOAuth2RefreshTokens extends IOAuth2Storage {
11-
12-
/**
12+
13+
/**
1314
* Grant refresh access tokens.
1415
*
1516
* Retrieve the stored data for the given refresh token.

lib/IOAuth2Storage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* All storage engines need to implement this interface in order to use OAuth2 server
45
*
@@ -23,7 +24,7 @@ interface IOAuth2Storage {
2324
* @ingroup oauth2_section_3
2425
*/
2526
public function checkClientCredentials($client_id, $client_secret = NULL);
26-
27+
2728
/**
2829
* Get client details corresponding client_id.
2930
*

0 commit comments

Comments
 (0)