An open API service indexing awesome lists of open source software.

https://github.com/or13/gnarly

Example VC API thats supports BBS+, VC-JWT and JsonWebSignature2020
https://github.com/or13/gnarly

Last synced: about 1 year ago
JSON representation

Example VC API thats supports BBS+, VC-JWT and JsonWebSignature2020

Awesome Lists containing this project

README

          

### GNARYLY

[VC Data Model + OAS 3.0 + OAuth2](https://gnarly.or13.io)

This repo was created to as a proposal for changes to the VC-HTTP-API.

Main improvements over the current API:

1. Supports VC-JWT
1. Supports JsonWebSignature2020
1. Supports Authorization
1. Supports BBS+ Selective Disclosure Presentation Exchange

#### API Documentation

```
npm run build:docs
npm run serve:docs
```

Visit [http://localhost:5000](http://localhost:5000)

#### Setting Up Authorization

1. Create an API in Auth0

![create an api that supports scopes](./docs/auth0-create-api.png)

2. Create a Scopes in Auth0 from the OAS 3.0 Spec guidelines

![setup scopes](./docs/auth0-scopes.png)

3. Configure OAS 3.0 YAML to use Auth0

![use scopes from oas3](./docs/oas-permissions.png)

If you are interested in adding additional security schemes, checkout:

[OpenAPI Specification](https://swagger.io/specification/)

Funny how they don't seem to be listing GNAP or RAR there...
...almost like they are not mature enough to use yet.