MicroCafe / template-service

Template Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template Microservice

Pre-requiste

KeyCloak Setup

  1. Create Admin User - http://localhost:8080/auth
  2. Login to the admin console - http://localhost:8080/auth/admin
  3. Create a realm
  4. Add Client

Client ID : <your_client_name> Client Protocol : openid-connect

  1. Configure Client

Access Type : confidential Valid Redirect URIs : http://localhost:8085

  1. Create Client Role
  2. Create a Mapper

Property : username Token Claim Name : user_name Add to Access Token : true

  1. Create a user and Set Password
  2. Map Client Role To User
  3. Get Configuration From OpenID Configuration Endpoint

GET http://localhost:8080/auth/realms/dev/.well-known/openid-configuration

Build

gradle build

Run

gradle run

Test

Use Postman Suite

About

Template Service


Languages

Language:Java 100.0%