Skip to content

malach-it/boruta_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BorutaExample

Integration example of boruta core library within a phoenix application.

Setup

  1. setup the application, the database and the assets
mix deps.get
mix ecto.migrate
cd ./assets/wallet
npm i
  1. Fill in universal resolver api key in config/config.exs file

  2. start the server

mix phx.server

Links

  1. Obtain an id_token

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://redirect.uri&response_type=id_token&state=qrm0c4xm&scope=openid&nonce=nonce

  1. Obtain an access_token

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://redirect.uri&response_type=token&state=qrm0c4xm

  1. Obtain an id_token and an access_token

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://redirect.uri&response_type=id_token+token&state=qrm0c4xm&scope=openid&nonce=nonce

  1. Obtain an id_token and a code

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://redirect.uri&response_type=code+id_token&state=qrm0c4xm&scope=openid&nonce=nonce

  1. Obtain a credential

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://localhost:4000/wallet/preauthorized-code&response_type=urn:ietf:params:oauth:response-type:pre-authorized_code&client_metadata={}&state=qrm0c4xm&scope=openid

  1. Perform a presentation

http://localhost:4000/oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://localhost:4000/wallet/verifiable-presentation&response_type=vp_token&client_metadata={}&state=qrm0c4xm&scope=openid+email

About

Example of decentralized identity integration with boruta open core library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published