Skip to content

Securing a Spring REST API with Keycloak with bearer-only=true.

Notifications You must be signed in to change notification settings

czetsuya/Spring-Keycloak-with-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

Spring Project Secured with Keycloak

A demo project created to demonstrate how a Spring project can be secured using a Keycloak server via bearer token.

Requirements:

Note:

  • Make sure that you have the same Keycloak client credentials value for the 2 project ands Keycloak server.

If keycloak.json file is to be used instead of application.yml, set the following system variable and make sure that you have the file keycloak.json in src/main/resources.

keycloak.configurationFile = classpath:keycloak.json

Users

Role=User, kerri / kerri Role=Admin, admin / admin

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages