-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Support for Keycloak 17+ / Version 19 as target (#361)
* accept interfaces, return structs * update dependencies * update go version in CI * Fix linter errors * BreakingChange: fix typo in ServerInfoRepresentation * BreakingChange: rename RetrospectTokenResult to IntrospectTokenResult * fix more linter errors * BreakingChange: Bugfix - Issue #358 CreateClientRepresentation does now require a token * upgrade for keycloak 19 * update CI * jub * cleanup * add SendVerifyEmail function * test * Fix #248 * Fix realm import (#367) * Fix realm import * Fix gocloak-realm * Add test permissions, policy * Change JS policies to client, remove test for uploading JS policy * Fix register client tests Co-authored-by: Pavol Ipoth <[email protected]> * fix tests (#379) * fix tests * Fix Comment go-linter * update dependencies and add nancy ignore case * Add -d to make file Co-authored-by: Jonas Heinemann <[email protected]> * upgrade gocloak version (#380) Co-authored-by: Tobias Theel <[email protected]> Co-authored-by: p53 <[email protected]> Co-authored-by: Pavol Ipoth <[email protected]> Co-authored-by: Jonas <[email protected]> Co-authored-by: Jonas Heinemann <[email protected]> Co-authored-by: WilliPkv <[email protected]>
- Loading branch information
1 parent
b4b5d20
commit 18f0f3d
Showing
16 changed files
with
1,396 additions
and
1,739 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run golangci-lint | ||
|
@@ -20,8 +20,7 @@ jobs: | |
uses: sonatype-nexus-community/nancy-github-action@main | ||
- name: Run Keycloak | ||
run: | | ||
docker pull jboss/keycloak:12.0.3 | ||
docker run -d -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=secret -e KEYCLOAK_IMPORT=/tmp/gocloak-realm.json -v "`pwd`/testdata/gocloak-realm.json:/tmp/gocloak-realm.json" -p 8080:8080 --name keycloak jboss/keycloak:12.0.3 -Dkeycloak.profile.feature.upload_scripts=enabled | ||
make start-keycloak | ||
sleep 15 | ||
- name: Unit Tests | ||
run: | | ||
|
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 +1 @@ | ||
CVE-2019-11840 | ||
CVE-2022-32149 |
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,11 @@ | ||
FROM quay.io/keycloak/keycloak:latest | ||
COPY testdata data/import | ||
WORKDIR /opt/keycloak | ||
ENV KC_HOSTNAME=localhost | ||
ENV KEYCLOAK_USER=admin | ||
ENV KEYCLOAK_PASSWORD=secret | ||
ENV KEYCLOAK_ADMIN=admin | ||
ENV KEYCLOAK_ADMIN_PASSWORD=secret | ||
ENV KC_FEATURES=account-api,account2,authorization,client-policies,impersonation,docker,scripts,upload_scripts | ||
RUN /opt/keycloak/bin/kc.sh import --file /data/import/gocloak-realm.json | ||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] |
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,3 +1,6 @@ | ||
test: | ||
./run-tests.sh | ||
|
||
|
||
start-keycloak: | ||
docker-compose down | ||
docker-compose up -d |
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.