soramitsu / sora-didresolver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status codecov Codacy Badge

Didresolver

Purpose

Provide a way to authenticate users, organizations and other actors in fully decentralized manner

Specification

Specification of DAuth can be found here

Usage

Build project: ./gradlew build

Run tests: ./gradlew test

Create an image with didresolver inside: ./gradlew dockerBuild

Environment variables

Didresolver depends on Iroha blockchain, so it requires direct link to it and preconfigured blockchain On startup didresolver service expects environment variables:

  • DIDRESOLVER_IROHA_HOST: URL of Iroha peer
  • DIDRESOLVER_IROHA_PORT: port on which Iroha peer expects incoming messages
  • DIDRESOLVER_IROHA_ACCOUNT: precreated account in Iroha in which account details records written
  • DIDRESOLVER_IROHA_PRIVATE_KEY: secret key of the predefined account
  • DIDRESOLVER_IROHA_PUBLIC_KEY: public key of the predefined account

API

All endpoints exposed by service can be found in Swagger documentation. By default, it is available by path /didresolver/swagger-ui.html

About

License:Apache License 2.0


Languages

Language:Java 100.0%