Testing Keycloak integration with Arquillian

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

Using SwitchUser functionality in Spring

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

Securing JAX-RS: Keycloak, CDI and EJB confusion

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

How to mock configuration in a Grails unit- or integration test?

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

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?