-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keycloak integration test #6085
Add keycloak integration test #6085
Conversation
53c3975
to
bc49898
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this @corneil . I have quite a few comments/suggestions but all in all this is looking good.
...st/java/org/springframework/cloud/common/security/support/DefaultAuthoritiesMapperTests.java
Outdated
Show resolved
Hide resolved
...st/java/org/springframework/cloud/common/security/support/DefaultAuthoritiesMapperTests.java
Outdated
Show resolved
Hide resolved
.../test/java/org/springframework/cloud/dataflow/integration/test/db/AbstractDataflowTests.java
Outdated
Show resolved
Hide resolved
.../src/test/java/org/springframework/cloud/dataflow/unit/test/DataFlowAuthenticationTests.java
Outdated
Show resolved
Hide resolved
.../src/test/java/org/springframework/cloud/dataflow/unit/test/DataFlowAuthenticationTests.java
Outdated
Show resolved
Hide resolved
.../src/test/java/org/springframework/cloud/dataflow/unit/test/DataFlowAuthenticationTests.java
Outdated
Show resolved
Hide resolved
spring-cloud-dataflow-server/src/test/resources/application-keycloak-client.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @corneil - LGTM.
Adds Keycloak integration test to DataflowOAuthIT Adds Authorities mapping test similar to keycloak role usage. Added scripts to src/local for testing keycloak locally with preconfigured roles / group and user. Fix duplicate output for skipper and dataflow and some output frames. Refactor DefaultAuthoritiesMapperTests for JUnit 5 conventions. Rename DataflowOAuthIT methods for JUnit 5 conventions. Add testcontainers-keycloak to dependency management in spring-cloud-dataflow-parent. Updates src/local/README.md with information on the scripts. Removes create-containers.sh that used jib Adds comment to application-dataflow-keycloak.yaml on client-secret.
94862fd
to
78bf012
Compare
Squashed all changes into one commit which allowed dropping some unneeded changes. |
Adds Keycloak integration test to DataflowOAuthIT
Adds Authorities mapping test similar to keycloak role usage.
Added scripts to src/local for testing keycloak locally with preconfigured roles / group and user.
NOTES
The Keycloak configuration uses roles and assigns user to a group containing those roles.
The configuration supports both basic auth endpoint like needed by dataflow shell and REST calls and OAuth2 flow needed by the UI. Default user in keycloak realm is
joe:password
.