Skip to content

Instantly share code, notes, and snippets.

jamilxt /
Created Sep 28, 2022 — forked from thomasdarimont/
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.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;
View gist:1c7508d446a72eddb8587e6636b3c518
<script src=""></script>
<button id="btn" onclick="copyToClipboard('#btn')">Copy Me</button>
function copyToClipboard(element) {
var $temp = $("<input>");
View test1
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if ( == ''
&& !'multidex') ) {
details.useVersion "26.1.0"