Fork me on GitHub

Programming, Internet & more

Category Archives for spring

Authentication with Spring Boot, Angular 2 and Keycloak

Last year, I wrote about how to http://slackspace.de/articles/authentication-with-spring-boot-angularjs-and-keycloak/[integrate AngularJS with Keycloak]. However, in the meantime many things have changed. There are new major versions for every used technology, Angular 2 is final and has continued the successful path of its predecessor AngularJS. Because the concepts of Angular 2 have changed so much, I’ve thought it […]

Also posted in spring-boot | Leave a comment

Authentication with Spring Boot, AngularJS and Keycloak

Update There is a new version of this tutorial available for Angular 2 and Keycloak. Intro In this tutorial, I want to show you how to combine Keycloak with AngularJS and Spring Boot. The result will be a small application where you will get a frontend written in AngularJS and the big topics regarding authentication […]

Also posted in spring-boot | 18 Comments

Test Request-Scoped Beans with Spring

Spring makes it very easy to write test with jUnit. There are a lot of helpers like SpringJUnit4ClassRunner which allows you to write tests for spring-managed objects. But assume you have a web application and you have annotated most of your beans/controllers with @Scope(“request”) or @Scope(“session”). If you try to write a test for this […]

4 Comments

Roles & Permissions with Spring-Security 3

The Spring-Security approach to model roles and permissions is, in my opinion, very strange. In fact, out of the box you have either an overly simple approach with just users and roles, or a very complex heavy weigh approach with security on every domain object instance. The most common requirement for security that I come […]

1 Comment

Custom login page with JSF and Spring-Security 3

Spring-Security is great, but it is mostly used together with spring-mvc. It works well with JSF also but there are a few pitfalls, you can come across if you haven’t used spring-security with JSF before. In this tutorial I will explain how to provide a custom login page implemented in JSF for spring-security. Requirements You […]

5 Comments