-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 oidc-wiremock to CI Security2 category #12822
Add oidc-wiremock to CI Security2 category #12822
Conversation
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.
LGTM. Let's see what CI says or if there will be a need to increase the timeouts.
@machi1990 So it failed, though I've confirmed it works in the native image for me, hmm... need to find the logs somehow :-) |
Right, so it is
since Keycloak is listening there as well, elytron oauth2 tests run on the default 8080 port, so I'll try it |
6ef8375
to
1297006
Compare
WireMock.stubFor( | ||
get(urlEqualTo("/auth/realms/quarkus/.well-known/openid-configuration")) | ||
.willReturn(aResponse() | ||
.withHeader("Content-Type", MediaType.APPLICATION_JSON) | ||
.withBody("{\n" + | ||
" \"authorization_endpoint\": \"http://localhost:8180/authenticate\",\n" + | ||
" \"end_session_endpoint\": \"http://localhost:8180/logout\",\n" + | ||
" \"authorization_endpoint\": \"http://localhost:8080/authenticate\",\n" + |
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.
Another option would be to use server.getOptions().portNumber()
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.
@gastaldi @machi1990 it also has server.baseUrl()
so I've used it and also removed the redundant discovery values which are not needed for the mock testing; it should be very easy for the users to mock the bearer token authentication; code flow would have something more similar to the original, CC @cemnura
1297006
to
3f1fa17
Compare
3f1fa17
to
4b7d6c8
Compare
I've also move
elytron-resteasy
to theHTTP
category where all other resteasy tests are run