-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Avoiding nip.io for stability #38613
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
Avoiding nip.io for stability #38613
Conversation
Closes keycloak#38104 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
67fca54
to
4a9cf5d
Compare
@@ -73,6 +74,7 @@ public abstract class AbstractSamlTest extends AbstractAuthTest { | |||
|
|||
static { | |||
try { | |||
CryptoIntegration.init(Thread.currentThread().getContextClassLoader()); |
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.
In case you are wondering: This was necessary to run SamlReverseProxyTest
isolated from the CLI, as then the crypto integration wasn't initialized yet. This call doesn't do any harm if it isn't initialized yet.
@vaceksimon / @mhajas - this is a PR which avoids nip.io in the reported places. Please review when you have the time and merge. Thanks! |
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.
I am not sure we can do this. The purpose of nip.io usage is to simulate usage of a real domain in browser. Cookies for 0.0.0.0
may be handled differently, like it is possible secure cookies are sent also to insecure context when 0.0.0.0 is used.
For the cookie provider test, For the reverse proxy it doesn't matter as there are both http and https test. And using |
@jonkoops - AFAIK you have been involved in the discussion about secure vs. non-secure contexts. Maybe you can help to assess this change. |
Note that |
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 fix!
Closes #38104