In a previous blog post we discussed a bit on how you can integrate Keycloak with JAX-RS. In this blog post we’ll show an example on how to build an integration test to test if your REST endpoint is secured. In this setup, we are using Keycloak 1.4.0 for our identity management, and we deploy our application in Wildfly 9. (Older versions … Lees verder Testing Keycloak integration with Arquillian
If you are developing a website with external users, those users might require support. For the people providing support, it can be quite convenient to be able to log in as a user and see the application through their eyes. In this blog post we’ll visit some of the components Spring 3 provides to handle this kind of feature. Switching … Lees verder Using SwitchUser functionality in Spring
Logging in the Java world unfortunately is complicated. Due to Parkinson’s Law of Triviality we ended up with an endless list of libraries that provide logging capabilities, up to the point where Sun (when it still existed) decided to step in with JUL (java.util.logging) in JDK 1.4. Too little, too late and it only added to the complexity. These days the … Lees verder Configuring SLF4J in Wildfly
Working with the latest technology can be quite painful. Not necessarily because the software is buggy or immature, in my experience it is mostly because googling for a problem gives solutions for older versions. In this bug hunt, I was working with a Wildfly 9.0.1 hooked up to a Keycloak 1.3.1 server. I was trying to secure our REST API. I … Lees verder Securing JAX-RS: Keycloak, CDI and EJB confusion
This is the blogpost as promised in the First8 Friday video blog of August 2015. This post presents the idea of storing passwords as safely as possible for the purpose of authentication. First a word of caution. User management is more work than you might think. It is also done a lot of times over and over again. Role based … Lees verder Password storage (for Ducktown Times)
Welcome to the 7th edition of the First8Friday videoblog, our recurring dose of Open Source inspiration we’d like to share with you the 1st Friday of each month.
Sometimes you may need to mock Grails (application) configuration in an unit or integration test. E.g. you want to test code which normally would access the property jmxEnabled from the following configuration block: In Grails 2 in Config.groovy
jmxEnabled = true
or Grails 3 in application.yml
Here’s are the most simple options for a Grails 2.4.x or Grails 3.0.x Spock unit- or integration … Lees verder How to mock configuration in a Grails unit- or integration test?