Skip to content

Usage

Runtest

See https://git.svgun.ru/blockchain/vc-authn-oidc/-/blob/master/README.md

Swagger UI:

http://IP-ADDRESS:5000/docs

.env

INVITATION_LABEL=ArtOfCoin
CONTROLLER_URL=<DOMAIN_NAME_PROXY_TO_5000>
AGENT_ENDPOINT=http://<IP>:8035
MT_ACAPY_WALLET_ID=<TRACTION_WALLET_ID>
MT_ACAPY_WALLET_KEY=<TRACTION_WALLET_KEY>
AGENT_WALLET_SEED=<AUTO_GENERATED>

Ver_configs

{
  "subject_identifier": "",
  "proof_request": {
    "name": "BC Wallet Showcase Person",
    "version": "1.0",
    "non_revoked": null,
    "requested_attributes": [
      {
        "names": ["account", "user_id"],
        "label": null,
        "restrictions": [
          {
            "schema_id": "3cy2XvsnUxb2hbA5Jf4Gq4:2:account:1.0",
            "cred_def_id": "3cy2XvsnUxb2hbA5Jf4Gq4:3:CL:55:account",
            "schema_name": "account",
            "schema_issuer_did": null,
            "schema_version": "1.0",
            "issuer_did": "3cy2XvsnUxb2hbA5Jf4Gq4"
          }
        ]
      }
    ],
    "requested_predicates": []
  },
  "generate_consistent_identifier": true,
  "include_v1_attributes": false,
  "metadata": null,
  "ver_config_id": "showcase-person"
}

Where is issuer_did ?

Go to "/tenant/profile" in Traction:

  • Account must be ISSUER

Clients

{
  "client_id": "keycloak",
  "client_name": "keycloak",
  "response_types": ["code", "id_token", "token"],
  "redirect_uris": [
    "https://kk.svgun.ru/realms/vc-authn/broker/vc-authn/endpoint"
  ],
  "token_endpoint_auth_method": "client_secret_basic",
  "client_secret": "**********"
}