Skip to content

Commit 79b265f

Browse files
authored
Merge pull request #10 from medwing/feat_Upgrade_plugin_for_Kong_3.x
feat!: Upgrade plugin for Kong 3.x
2 parents c6c2432 + 1b90373 commit 79b265f

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ version: 2.1
33
jobs:
44
test:
55
machine:
6-
image: ubuntu-2004:202111-01
6+
image: ubuntu-2004:2023.04.2
77
docker_layer_caching: true
88
steps:
99
- checkout
1010
- run:
1111
name: Install pongo
1212
command: |
13-
git clone --single-branch https://github.com/Kong/kong-pongo ../kong-pongo
13+
git clone --depth 1 --branch 2.5.0 https://github.com/Kong/kong-pongo ../kong-pongo
1414
../kong-pongo/pongo.sh up
1515
../kong-pongo/pongo.sh build
1616
- run:

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Plugin is protecting Kong API service/route with introspection of Oauth2.0 JWT a
3030
**1.2.0** `luarocks install https://raw.githubusercontent.com/medwing/kong-token-introspection/v1.2.0/access-token-introspection-1.2.0-0.rockspec`
3131

3232
**1.2.1** `luarocks install https://raw.githubusercontent.com/medwing/kong-token-introspection/v1.2.1/access-token-introspection-1.2.1-0.rockspec`
33+
34+
**2.0.0** `luarocks install https://raw.githubusercontent.com/medwing/kong-token-introspection/v2.0.0/access-token-introspection-2.0.0-0.rockspec`

access-token-introspection-1.2.1-0.rockspec access-token-introspection-2.0.0-0.rockspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package = "access-token-introspection"
2-
version = "1.2.1-0"
2+
version = "2.0.0-0"
33

44
source = {
55
url = "git+https://github.com/medwing/kong-token-introspection.git",
6-
tag = "v1.2.1"
6+
tag = "v2.0.0"
77
}
88

99
description = {
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
local BasePlugin = require "kong.plugins.base_plugin"
21
local access = require "kong.plugins.access-token-introspection.access"
32

4-
local TokenHandler = BasePlugin:extend()
5-
6-
function TokenHandler:new()
7-
TokenHandler.super.new(self, "access-token-introspection")
8-
end
3+
local TokenHandler = {
4+
PRIORITY = 1500,
5+
VERSION = "2.0.0-0"
6+
}
97

108
function TokenHandler:access(conf)
11-
TokenHandler.super.access(self)
129
access.run(conf)
1310
end
1411

15-
return TokenHandler
12+
return TokenHandler

0 commit comments

Comments
 (0)