https://github.com/timoglastra/openid4vci-issuer
openid4vci-issuer
https://github.com/timoglastra/openid4vci-issuer
Last synced: 8 months ago
JSON representation
openid4vci-issuer
- Host: GitHub
- URL: https://github.com/timoglastra/openid4vci-issuer
- Owner: TimoGlastra
- Created: 2023-05-14T19:44:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T19:45:04.000Z (over 2 years ago)
- Last Synced: 2025-01-11T22:13:43.544Z (10 months ago)
- Language: JavaScript
- Size: 66.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenID4VCI Issuer
This is a sample OpenID4VCI issuer based on [openid4vc-rs](https://github.com/sicpa-dlab/openid4vc-rs), and [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript)
## Running
1. Make sure you have the openid4vci grpc server running.
```sh
git clone https://github.com/sicpa-dlab/openid4vc-rs
cargo build
./target/debug/server
```
1. Install the dependencies in this repo and start the server
```sh
yarn install
yarn start
```
3. Make a request (e.g. to create a credential offer)
```sh
curl -X POST http://localhost:3000/create-offer
```
## Updating the GRPC Client
1. Update the path in the `generate` script in the `package.json` file.
- It currently assumes there's a parent directory called `openid4vci-rs` as a clone of the openid4vc-rs repository.
2. Run `yarn generate` to generate the client.
## Endpoints
### Well Known OpenID Credential Issuer Endpoints
`GET /.well-known/openid-configuration`
Hosts the OpenID4VCI Credential Issuer metadata on the specified well-known path.
### Create Credential Offer
`POST /create-offer`
Creates a credential offer.