My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 10 attachment: oauth2_expires.diff (3.1 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff -aur oauth2.org//lib/oauth.php oauth2/lib/oauth.php
--- oauth2.org//lib/oauth.php 2010-06-29 17:46:36.000000000 +0200
+++ oauth2/lib/oauth.php 2010-11-04 11:44:17.364969000 +0100
@@ -449,7 +449,7 @@
if ($stored === null || $input["redirect_uri"] != $stored["redirect_uri"] || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
@@ -482,7 +482,7 @@
if ($stored === null || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
diff -aur oauth2.org//server/examples/mongo/lib/oauth.php oauth2/server/examples/mongo/lib/oauth.php
--- oauth2.org//server/examples/mongo/lib/oauth.php 2010-06-29 17:52:40.000000000 +0200
+++ oauth2/server/examples/mongo/lib/oauth.php 2010-11-04 11:44:39.894969003 +0100
@@ -449,7 +449,7 @@
if ($stored === null || $input["redirect_uri"] != $stored["redirect_uri"] || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
@@ -482,7 +482,7 @@
if ($stored === null || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
diff -aur oauth2.org//server/examples/pdo/lib/oauth.php oauth2/server/examples/pdo/lib/oauth.php
--- oauth2.org//server/examples/pdo/lib/oauth.php 2010-06-29 17:52:42.000000000 +0200
+++ oauth2/server/examples/pdo/lib/oauth.php 2010-11-04 11:51:22.474969005 +0100
@@ -449,7 +449,7 @@
if ($stored === null || $input["redirect_uri"] != $stored["redirect_uri"] || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
@@ -482,7 +482,7 @@
if ($stored === null || $client[0] != $stored["client_id"])
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

- if ($stored["expires"] > time())
+ if ($stored["expires"] < time())
$this->error(ERROR_BAD_REQUEST, ERROR_INVALID_GRANT);

break;
Powered by Google Project Hosting