Skip to content

Instantly share code, notes, and snippets.

View MikilchenkoMarina's full-sized avatar

Marin Mik MikilchenkoMarina

View GitHub Profile
@thomasdarimont
thomasdarimont / keycloak_db_overview_4.0.0.CR1-SNAPSHOT.svg
Created January 7, 2018 22:47
Keycloak Database Overview 4.0.0.CR1-SNAPSHOT (06bb6f00e5)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasVitale
ThomasVitale / ApplicationController.java
Last active June 11, 2023 22:08
Securing a Spring Boot Application with Keycloak
package com.thomasvitale.keycloak.controller;
import com.thomasvitale.keycloak.repository.BookRepository;
import org.keycloak.KeycloakSecurityContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.ServletException;