Skip to content

Commit

Permalink
Config the create oob invitation my_label
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Sep 12, 2024
1 parent a44ce58 commit fbc81ff
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/vc-authn-oidc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ kubectl delete secret,pvc --selector "app.kubernetes.io/instance"=my-release
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- |
| `acapyTenancyMode` | Agent tenancy mode, either `single` or `multi` | `single` |
| `setNonRevoked` | if True, the `non_revoked` attributed will be added to each of the present-proof request `requested_attribute` and `requested_predicate` with 'from=0' and'to=`int(time.time())` | `true` |
| `invitationLabel` | For the invitations sent that include the proof, what to add as the my_label field. Can be used to identify the requester to the prover | `"VC-AuthN"` |
| `useOobPresentProof` | if True, the present-proof request will be provided as a an [out of band](https://github.com/hyperledger/aries-rfcs/tree/main/features/0434-outofband) invitation with a [present-proof](https://github.com/hyperledger/aries-rfcs/tree/main/features/0037-present-proof) request inside. If False, the present-proof request will be use the [service-decorator](https://github.com/hyperledger/aries-rfcs/tree/main/features/0056-service-decorator) | `false` |
| `useOobLocalDIDService` | | `false` |
| `useUrlDeepLink` | if True, will use the new encoded URL (`didcomm://?_url={redirect URL}`) redirect form of the deep link | `false` |
| `walletDeepLinkPrefix` | Custom URI scheme and host to use for deep links (`{walletDeepLinkPrefix}?c_i={connection payload`) | `bcwallet://aries_proof-request` |
| `walletDeepLinkPrefix` | Custom URI scheme and host to use for deep links (`{walletDeepLinkPrefix}?c_i={connection payload`) | `"bcwallet://aries_proof-request"` |
| `controllerCameraRedirectUrl` | The redirect url can be a web link or the name of a template | `wallet_howto` |
| `controllerPresentationExpireTime` | The number of time in seconds a proof request will be valid for | `300` |
| `useHTTPS` | Prepend Agent and Admin URLs with `https` | `true` |
Expand Down
2 changes: 2 additions & 0 deletions charts/vc-authn-oidc/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ spec:
value: {{ include "acapy.agent.url" . }}
- name: ACAPY_ADMIN_URL
value: {{ include "acapy.internal.admin.url" . }}
- name: INVITATION_LABEL
value: {{ .Values.invitationLabel | quote }}
- name: USE_OOB_PRESENT_PROOF
value: {{ .Values.useOobPresentProof | quote }}
- name: USE_URL_DEEP_LINK
Expand Down
2 changes: 2 additions & 0 deletions charts/vc-authn-oidc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ ingressSuffix: .apps.silver.devops.gov.bc.ca
acapyTenancyMode: single
## @param setNonRevoked if True, the `non_revoked` attributed will be added to each of the present-proof request `requested_attribute` and `requested_predicate` with 'from=0' and'to=`int(time.time())`
setNonRevoked: true
## @param invitationLabel For the invitations sent that include the proof, what to add as the my_label field. Can be used to identify the requester to the prover
invitationLabel: VC-AuthN
## @param useOobPresentProof if True, the present-proof request will be provided as a an [out of band](https://github.com/hyperledger/aries-rfcs/tree/main/features/0434-outofband) invitation with a [present-proof](https://github.com/hyperledger/aries-rfcs/tree/main/features/0037-present-proof) request inside. If False, the present-proof request will be use the [service-decorator](https://github.com/hyperledger/aries-rfcs/tree/main/features/0056-service-decorator)
useOobPresentProof: false
## @param useOobLocalDIDService
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ services:
- USE_OOB_LOCAL_DID_SERVICE=${USE_OOB_LOCAL_DID_SERVICE}
- USE_URL_DEEP_LINK=${USE_URL_DEEP_LINK}
- WALLET_DEEP_LINK_PREFIX=${WALLET_DEEP_LINK_PREFIX}
- INVITATION_LABEL=${INVITATION_LABEL}
ports:
- ${CONTROLLER_SERVICE_PORT}:5000
- 5678:5678
Expand Down
1 change: 1 addition & 0 deletions docker/manage
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ configureEnvironment() {
export CONTROLLER_SESSION_TIMEOUT_CONFIG_FILE="/tmp/sessiontimeout.json"

#controller app settings
export INVITATION_LABEL=${INVITATION_LABEL:-"VC-AuthN"}
export SET_NON_REVOKED="True"
export USE_OOB_PRESENT_PROOF=${USE_OOB_PRESENT_PROOF:-"true"}
export USE_OOB_LOCAL_DID_SERVICE=${USE_OOB_LOCAL_DID_SERVICE:-"true"}
Expand Down
1 change: 1 addition & 0 deletions oidc-controller/api/core/acapy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def oob_create_invitation(
}
],
"use_public_did": use_public_did,
"my_label": settings.INVITATION_LABEL,
}

resp_raw = requests.post(
Expand Down
1 change: 1 addition & 0 deletions oidc-controller/api/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ class GlobalConfig(BaseSettings):
OIDC_CLIENT_SECRET: str = os.environ.get("OIDC_CLIENT_SECRET", "**********")

# OIDC Controller Settings
INVITATION_LABEL: str = os.environ.get("INVITATION_LABEL", "VC-AuthN")
CONTROLLER_API_KEY: str = os.environ.get("CONTROLLER_API_KEY", "")
USE_OOB_PRESENT_PROOF: bool = strtobool(
os.environ.get("USE_OOB_PRESENT_PROOF", False)
Expand Down

0 comments on commit fbc81ff

Please sign in to comment.