Skip to content

MicroCafe/template-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages