Skip to content

ice09/fractal-circles-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractal Circles Integration Demo Setup

These instructions help to create a demo setup for the Fractal-Circles-Integration with the Authentication part mocked by Keycloak.
The prototypical demo should be used to clarify open questions between Fractal and Circles.

Authorization Grant Flow Call Sequence

flow

Start Authorization Grant Flow with Authentication URL

Prerequisites

Installations

  • Java 11+
  • Maven 3+
  • Keycloak 14+

Configurations

Keycloak
  • Create Realm "circles"
  • Create Client "verification"
    • Set "Valid Redirect URL": http://localhost:8989/auth
    • Set "Access-Type" to "Confidential"
      • Copy "client_secret" from "Credentials" tab for later use
    • Set "Create Protocol Mapper": "wallet-address"
      • Set "Mapper Type": "User Attribute"
      • Set "User Attribute", "Claim Name", "Token Claim Name": "wallet_address"
      • Set "Claim JSON Type": "String"
  • Create User "circles_user"
    • Add attribute "wallet-address": "0x0523"
    • Set non-temporary password for "circles_user"
Spring Boot Demo Application
  • Set "client_secret" from Keycloak Client as keycloak.client-secret in src/main/resources/application.properties

Setup Demo Environment

  • Repo is cloned locally
  • Keycloak is running at localhost:8080
  • Keycloak configuration according to steps mentioned (Realm, Client, Users, Mappers)
  • "client_secret" was added as keycloak.client-secret to application.properties
  • Start Application with mvn spring-boot:run

Run Demo

// Keycloak Bearer Token Request
GET http://localhost:8989/users/me
Authorization: Bearer ${BEARER_TOKEN}

The result should be the "wallet-address" stored with the "circles_user" in Keycloak.

Important URLs

About

Fractal Circles Integration Demo Setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published