Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

# image build&push

vcbackend:
vcverifier:
needs: [ "generate-version" ]
runs-on: ubuntu-latest

Expand All @@ -61,7 +61,7 @@ jobs:
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: vcbackend
image: vcverifier
tags: latest ${{ github.sha }} ${{needs.generate-version.outputs.version}}
dockerfiles: |
./Dockerfile
Expand All @@ -80,7 +80,7 @@ jobs:
git-release:
needs:
- generate-version
- vcbackend
- vcverifier

runs-on: ubuntu-latest

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

# image build&push

vcbackend:
vcverifier:
needs: [ "generate-version" ]
runs-on: ubuntu-latest

Expand All @@ -52,7 +52,7 @@ jobs:
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: vcbackend
image: vcverifier
tags: latest ${{ github.sha }} ${{needs.generate-version.outputs.version}}
dockerfiles: |
./Dockerfile
Expand All @@ -71,7 +71,7 @@ jobs:
git-release:
needs:
- generate-version
- vcbackend
- vcverifier

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /go/src/app
COPY --from=build /go/src/app/back/views /go/src/app/back/views
COPY --from=build /go/src/app/back/www /go/src/app/back/www
COPY --from=build /go/src/app/configs /go/src/app/configs
COPY --from=build /go/src/app/vcbackend /go/src/app/vcbackend
COPY --from=build /go/src/app/vcverifier /go/src/app/vcverifier
COPY --from=build /go/src/app/vault/templates /go/src/app/vault/templates

CMD ["./vcverifier"]
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VCBackend
# vcverifier

VCBackend includes in a single binary demo versions of Issuer, Verifier and Wallet (same-device only, for a cross-device wallet please see [VCWallet](https://github.com/hesusruiz/VCWallet)).
vcverifier includes in a single binary demo versions of Issuer, Verifier and Wallet (same-device only, for a cross-device wallet please see [VCWallet](https://github.com/hesusruiz/VCWallet)).

This facilitates installation and allows to see how all components fit together and the protocol flows between them.

Expand All @@ -9,30 +9,30 @@ This facilitates installation and allows to see how all components fit together
Clone the repository:

```
git clone git@github.com:hesusruiz/VCBackend.git
git clone git@github.com:hesusruiz/vcverifier.git
```

Before running VCBackend you need to have accessible the endpoints implemented by [VCWaltid](https://github.com/FIWARE/VCWaltid). Please install an run VCWaltid following the instructions there. The endpoints and ports required from VCBackend are preconfigured to match the ones from VCWaltid without any change. If you do require changes, they can be setup in the configuration file in `configs\server.yaml`.
Before running vcverifier you need to have accessible the endpoints implemented by [VCWaltid](https://github.com/FIWARE/VCWaltid). Please install an run VCWaltid following the instructions there. The endpoints and ports required from vcverifier are preconfigured to match the ones from VCWaltid without any change. If you do require changes, they can be setup in the configuration file in `configs\server.yaml`.

## Running

The first time that you start the VCBackend you have to make sure the database artifacts are consistent. Tou can use the provided Makefile for that or run the command directly:
The first time that you start the vcverifier you have to make sure the database artifacts are consistent. Tou can use the provided Makefile for that or run the command directly:

```
make datamodel
```

The above command has to be executed every time that you modify the database model in the application.

To start VCBackend in development mode, type:
To start vcverifier in development mode, type:

```
go run .
```

# Configuration

The configuration file in `config\server.yaml` provides for some configuration of VCBackend. An example config file is:
The configuration file in `config\server.yaml` provides for some configuration of vcverifier. An example config file is:

```yaml
server:
Expand Down
2 changes: 1 addition & 1 deletion api/api.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
title: VCBackend
title: vcverifier
description: Backend component to verify credentials
version: 0.0.1
tags:
Expand Down
2 changes: 1 addition & 1 deletion back/operations/manager.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package operations

import (
"github.com/fiware/vcbackend/vault"
"github.com/fiware/vcverifier/vault"
"github.com/hesusruiz/vcutils/yaml"

zlog "github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion back/operations/ssikit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/fiware/vcbackend/vault"
"github.com/fiware/vcverifier/vault"
"github.com/gofiber/fiber/v2"
"go.uber.org/zap"
)
Expand Down
4 changes: 2 additions & 2 deletions back/operations/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"crypto/rand"

"github.com/fiware/vcbackend/ent"
"github.com/fiware/vcbackend/ent/user"
"github.com/fiware/vcverifier/ent"
"github.com/fiware/vcverifier/ent/user"

"github.com/duo-labs/webauthn/protocol"
"github.com/duo-labs/webauthn/webauthn"
Expand Down
16 changes: 8 additions & 8 deletions ent/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/credential.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/credential/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/credential_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/credential_delete.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ent/credential_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ent/credential_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/did.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/did/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/did_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ent/did_delete.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ent/did_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ent/did_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions ent/ent.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ent/enttest/enttest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/hook/hook.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/naturalperson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ent/naturalperson/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading