Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for arbitrary claims for authorization subjects
Fixes #512 Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> read config from file Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> fix test Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> add getter function Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> rename Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> wire up templates Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> more test Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> fix license header Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> add unit test for subjectsprovider Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/util/src/main/java/org/eclipse/ditto/services/gateway/util/config/security/DefaultSubjectIssuerConfig.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/util/src/test/resources/oauth-test.conf Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/util/src/main/java/org/eclipse/ditto/services/gateway/util/config/security/DefaultSubjectIssuerConfig.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/util/src/main/java/org/eclipse/ditto/services/gateway/util/config/security/DefaultOAuthConfig.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/security/src/main/java/org/eclipse/ditto/services/gateway/security/authentication/jwt/JwtSubjectIssuerConfig.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/security/src/main/java/org/eclipse/ditto/services/gateway/security/authentication/jwt/DittoJwtAuthorizationSubjectsProvider.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> move SubjectIssuerConfig Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> fix devops-test config resource Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> fix Config reading Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> allow json structures in jwt Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> Update services/gateway/util/src/main/java/org/eclipse/ditto/services/gateway/util/config/security/SubjectIssuerConfig.java Co-authored-by: Thomas Jaeckle <thomas.jaeckle@bosch.io> Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> add test for json in jwt Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> move config parsing into SubjectIssuerConfig interface Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> correctly use config fallback values Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io> fix config syntax Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io>
- Loading branch information
Showing
17 changed files
with
481 additions
and
87 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
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.