Skip to content

Instantly share code, notes, and snippets.

View Kouagou's full-sized avatar

N'TCHA Kouagou Kenneth Kouagou

View GitHub Profile
@Kouagou
Kouagou / App.java
Created November 30, 2020 10:24 — forked from thomasdarimont/App.java
Simple Spring Boot App protected by Keycloak with initial roles from Keycloak and additional hierarchical app Internal roles. Supports fine grained permission checks, where the permissions are derived from roles.
package demo;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;