Skip to content

Practice keycload security implementation in spring boot apps

Notifications You must be signed in to change notification settings

Tountoun/keycloak-sec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAUTH2 SECURITY USING KEYCLOAK

DESCRIPTION

This project aims to make a use keycloak which is an open source identity and access management solution for modern applications and services. Here we secure a service of customers using keycloak solution.

Installation and running

  • Keycloak

    • Install keycloak server and start it in development mode
    • Follow this link Get started with keycloak to set up a realm, create users, and register a client with id keycloak-sec-client
    • Make sure configuration is ok by logging using created user's credentials
  • Project

    • Get the project
      git clone https://github.com/Tountoun/keycloak-sec.git
    • Build the project
      cd keycloak-sec
      mvn clean install
    • Update the following properties by the name of the realm you created
        spring:
          security:
            oauth2:
              resourceserver:
                jwt:
                  issuer-uri: http://localhost:8080/realms/<your-realm>
                  jwt-set-uri: http://localhost:8080/realms/<your_realm>/protocol/openid-connect/certs
        authorization:
            url: http://localhost:8080/realms/<your_realm>/protocol/openid-connect/token
    • Run the application in IntelliJ

Contact

About

Practice keycload security implementation in spring boot apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages