forked from gbbirkisson/kong-plugin-jwt-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
884 additions
and
461 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
Dockerfile | ||
Makefile | ||
README.md | ||
Dockerfile | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
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 was deleted.
Oops, something went wrong.
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,44 @@ | ||
local plugin_name = "jwt-keycloak" | ||
local package_name = "kong-plugin-" .. plugin_name | ||
local package_version = "1.3.0" | ||
local rockspec_revision = "1" | ||
|
||
local github_account_name = "telekom-digioss" | ||
local github_repo_name = package_name | ||
local git_checkout = package_version == "dev" and "master" or package_version | ||
|
||
|
||
package = package_name | ||
version = package_version .. "-" .. rockspec_revision | ||
supported_platforms = { "linux", "macosx" } | ||
source = { | ||
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", | ||
branch = git_checkout, | ||
} | ||
|
||
|
||
description = { | ||
summary = "A Kong plugin that will validate tokens issued by keycloak", | ||
homepage = "https://"..github_account_name..".github.io/"..github_repo_name, | ||
license = "Apache 2.0", | ||
} | ||
|
||
|
||
dependencies = { | ||
"lua ~> 5" | ||
} | ||
|
||
|
||
build = { | ||
type = "builtin", | ||
modules = { | ||
-- TODO: add any additional code files added to the plugin | ||
["kong.plugins."..plugin_name..".handler"] = "src/handler.lua", | ||
["kong.plugins."..plugin_name..".schema"] = "src/schema.lua", | ||
["kong.plugins."..plugin_name..".keycloak_keys"] = "src/keycloak_keys.lua", | ||
["kong.plugins."..plugin_name..".key_conversion"] = "src/key_conversion.lua", | ||
["kong.plugins."..plugin_name..".validators.issuers"] = "src/validators/issuers.lua", | ||
["kong.plugins."..plugin_name..".validators.roles"] = "src/validators/roles.lua", | ||
["kong.plugins."..plugin_name..".validators.scope"] = "src/validators/scope.lua", | ||
} | ||
} |
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,31 @@ | ||
HTTPBIN_IMAGE:=docker.io/kennethreitz/httpbin | ||
HTTPBIN_CONTAINER_NAME:=kong_test_httpbin | ||
HTTPBIN_PORT:=8093 | ||
|
||
PGADMIN_IMAGE:=docker.io/dpage/pgadmin4:7.5 | ||
PGADMIN_CONTAINER_NAME:=kong_test_pgadmin6 | ||
PGADMIN_PORT:=5050 | ||
PGADMIN_DEFAULT_EMAIL=pgadmin@subdomain.domain | ||
PGADMIN_DEFAULT_PASSWORD=pgadmin | ||
|
||
helpers-start: | ||
@echo "Starting Helpers ..." | ||
@docker start ${HTTPBIN_CONTAINER_NAME} || docker run -d \ | ||
--name ${HTTPBIN_CONTAINER_NAME} \ | ||
-p ${HTTPBIN_PORT}:80 \ | ||
${HTTPBIN_IMAGE} | ||
@docker start ${PGADMIN_CONTAINER_NAME} || docker run -d \ | ||
--name ${PGADMIN_CONTAINER_NAME} \ | ||
--net host \ | ||
-e "PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}" \ | ||
-e "PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}" \ | ||
-e "PGADMIN_CONFIG_DEBUG=True" \ | ||
-e "PGADMIN_LISTEN_PORT=${PGADMIN_DEFAULT_PASSWORD}" \ | ||
${PGADMIN_IMAGE} | ||
|
||
helpers-stop: | ||
@echo "Stopping Helpers ..." | ||
- @docker stop ${HTTPBIN_CONTAINER_NAME} | ||
- @docker rm ${HTTPBIN_CONTAINER_NAME} | ||
- @docker stop ${PGADMIN_CONTAINER_NAME} | ||
- @docker rm ${PGADMIN_CONTAINER_NAME} |
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.