Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix(authentication)!: add server specific issuer to JWT token (DEV-555)…
… (#2024) * add issuer to token * Update docstring with issuer * check token issuer for sipi * remove knora from sipi config file names * update token string in test * add test for different issuer * update documentation * rename test * define new env variables for sipi * improve error message
- Loading branch information
Showing
with
173 additions
and 264 deletions.
- +1 −1 build.sbt
- +5 −1 docker-compose.yml
- +16 −16 docs/05-internals/design/api-v2/sipi.md
- +2 −2 docs/05-internals/development/overview.md
- +3 −3 docs/07-sipi/index.md
- +21 −22 docs/07-sipi/{setup-sipi-for-knora.md → setup-sipi-for-dsp-api.md}
- +12 −12 docs/07-sipi/{sipi-and-knora.md → sipi-and-dsp-api.md}
- +2 −2 mkdocs.yml
- +1 −19 webapi/src/test/resources/sipi.knora-docker-config.lua → sipi/config/sipi.docker-config.lua
- +1 −1 sipi/config/{sipi.knora-docker-no-auth-config.lua → sipi.docker-no-auth-config.lua}
- +1 −1 sipi/config/{sipi.knora-docker-test-config.lua → sipi.docker-test-config.lua}
- +2 −2 sipi/config/{sipi.knora-local-config.lua → sipi.local-config.lua}
- +16 −2 sipi/scripts/jwt.lua
- +0 −128 sipi/scripts/sipi.init-knora-test.lua
- +1 −1 sipi/scripts/{sipi.init-knora-no-auth.lua → sipi.init-no-auth.lua}
- +1 −1 sipi/scripts/{sipi.init-knora.lua → sipi.init.lua}
- +35 −15 webapi/src/main/scala/org/knora/webapi/routing/Authenticator.scala
- +2 −0 webapi/src/main/scala/org/knora/webapi/store/iiif/SipiConnector.scala
- +1 −19 sipi/config/sipi.knora-docker-config.lua → webapi/src/test/resources/sipi.docker-config.lua
- +7 −4 webapi/src/test/scala/org/knora/webapi/TestContainersAll.scala
- +12 −2 webapi/src/test/scala/org/knora/webapi/routing/AuthenticatorSpec.scala
- +31 −10 webapi/src/test/scala/org/knora/webapi/routing/JWTHelperSpec.scala
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
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
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
@@ -49,7 +49,7 @@ sipi = { | ||
-- | ||
-- Lua script which is executed on initialization of the Lua interpreter | ||
-- | ||
initscript = '/sipi/scripts/sipi.init-no-auth.lua', | ||
|
||
-- | ||
-- path to the caching directory | ||
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
@@ -68,7 +68,7 @@ sipi = { | ||
-- | ||
-- Lua script which is executed on initialization of the Lua interpreter | ||
-- | ||
initscript = './scripts/sipi.init-test.lua', | ||
|
||
-- | ||
-- path to the caching directory | ||
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.