Coder Social home page Coder Social logo

pedro-sanchez09 / spring-boot-integration-with-keycloak Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pushpen0009/spring-boot-integration-with-keycloak

0.0 0.0 0.0 69 KB

Spring boot application with keycloak integration. 1- Setup Keycloak 2- Create token API 3- Refresh Token 4- Login with user registered on Keycloak 5- Authorization based on user role 6- Keycloak Auth Provider to validate token expiry

Java 84.36% HTML 15.64%

spring-boot-integration-with-keycloak's Introduction

following features has been done

1- Setup Keycloak

2- Create token API

3- Refresh Token

4- Login with user registered on Keycloak

5- Authorization based on user role

6- Keycloak Auth Provider to validate token expiry

Setup KeyCloak and integration with spring boot application

1.Download link

unzip the zip folder and go to bin folder and run standalone.bat file

OR

Run Keycloak using docker otherwise download and follow the steps from- https://www.keycloak.org/getting-started/getting-started-zip

docker run -p "8080:8080" -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=pass jboss/keycloak

2. Create an admin account on http://localhost:8080/auth link

3.Login in to the admin console on http://localhost:8080/auth/admin/ link

4. Create a Realm: SpringBootKeycloak

5. Add Client: login-app--->Valid Redirect URIs field: http://localhost:8081/*

6. Creating a Role and a User--> add the “user” role:--->We add the user “user1

7. Create a spring web application.

8. Integrate spring web application with Keycloak

Import KeycloakAPIs.postman_collection.json file into postmam and test rest api integration with Keycloak

spring-boot-integration-with-keycloak's People

Contributors

pushpen0009 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.