-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63a68e3
commit c3cad1c
Showing
30 changed files
with
1,476 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
local Migration = { | ||
name = "2015-06-09-170921_0.3.3", | ||
|
||
up = function(options) | ||
return [[ | ||
CREATE TABLE IF NOT EXISTS oauth2_credentials( | ||
id uuid, | ||
name text, | ||
consumer_id uuid, | ||
client_id text, | ||
client_secret text, | ||
redirect_uri text, | ||
created_at timestamp, | ||
PRIMARY KEY (id) | ||
); | ||
CREATE INDEX IF NOT EXISTS ON oauth2_credentials(consumer_id); | ||
CREATE INDEX IF NOT EXISTS ON oauth2_credentials(client_id); | ||
CREATE INDEX IF NOT EXISTS ON oauth2_credentials(client_secret); | ||
CREATE TABLE IF NOT EXISTS oauth2_authorization_codes( | ||
id uuid, | ||
code text, | ||
authenticated_username text, | ||
authenticated_userid text, | ||
scope text, | ||
created_at timestamp, | ||
PRIMARY KEY (id) | ||
) WITH default_time_to_live = 300; | ||
CREATE INDEX IF NOT EXISTS ON oauth2_authorization_codes(code); | ||
CREATE TABLE IF NOT EXISTS oauth2_tokens( | ||
id uuid, | ||
credential_id uuid, | ||
access_token text, | ||
token_type text, | ||
refresh_token text, | ||
expires_in int, | ||
authenticated_username text, | ||
authenticated_userid text, | ||
scope text, | ||
created_at timestamp, | ||
PRIMARY KEY (id) | ||
); | ||
CREATE INDEX IF NOT EXISTS ON oauth2_tokens(access_token); | ||
CREATE INDEX IF NOT EXISTS ON oauth2_tokens(refresh_token); | ||
]] | ||
end, | ||
|
||
down = function(options) | ||
return [[ | ||
DROP TABLE oauth2_credentials; | ||
DROP TABLE oauth2_authorization_codes; | ||
DROP TABLE oauth2_tokens; | ||
]] | ||
end | ||
} | ||
|
||
return Migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ plugins_available: | |
- ssl | ||
- keyauth | ||
- basicauth | ||
- oauth2 | ||
- ratelimiting | ||
- tcplog | ||
- udplog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
local VERSION = "0.3.2" | ||
local VERSION = "0.3.3" | ||
|
||
return { | ||
NAME = "kong", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.