Revision 6528,
1.0 KB
checked in by gustavo, 12 years ago
(diff) |
Ticket #2766 - Merge do branch das novas funcionalidaes para o trunk
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Storage engines that support the "Extensible" |
---|
5 | * grant types should implement this interface |
---|
6 | * |
---|
7 | * @author Dave Rochwerger <catch.dave@gmail.com> |
---|
8 | * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.5 |
---|
9 | */ |
---|
10 | interface IOAuth2GrantExtension extends IOAuth2Storage { |
---|
11 | |
---|
12 | /** |
---|
13 | * Check any extended grant types. |
---|
14 | * |
---|
15 | * @param string $uri |
---|
16 | * URI of the grant type definition |
---|
17 | * @param array $inputData |
---|
18 | * Unfiltered input data. The source is *not* guaranteed to be POST (but |
---|
19 | * is likely to be). |
---|
20 | * @param array $authHeaders |
---|
21 | * Authorization headers |
---|
22 | * @return |
---|
23 | * FALSE if the authorization is rejected or not support. |
---|
24 | * TRUE or an associative array if you wantto verify the scope: |
---|
25 | * @code |
---|
26 | * return array( |
---|
27 | * 'scope' => <stored scope values (space-separated string)>, |
---|
28 | * ); |
---|
29 | * @endcode |
---|
30 | * |
---|
31 | * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-1.4.5 |
---|
32 | * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.2 |
---|
33 | */ |
---|
34 | public function checkGrantExtension($uri, array $inputData, array $authHeaders); |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.